1
0
Fork 0
mirror of synced 2024-10-02 10:08:09 +13:00

dodgy merge

This commit is contained in:
Michael Shanks 2020-02-20 17:27:48 +00:00
parent f2e6ac0145
commit 7940d12c62
2 changed files with 6 additions and 3 deletions

View file

@ -116,7 +116,6 @@
</ul>
{#if componentLibrary}
{#each $store.builtins.concat(componentLibrary.components) as component}
{#each generate_components_list(componentLibrary.components) as component}
<div class="component-container">
<div

View file

@ -25,8 +25,12 @@
]
)
const lastPartOfName = c =>
c && last(c.name ? c.name.split("/") : c._component.split("/"))
const lastPartOfName = c => {
if (!c) return ""
const name = c.name ? c.name : c._component ? c._component : c
return last(name.split("/"))
}
const isComponentSelected = (current, comp) => current === comp