From 7940d12c62675f90cfa8d8ee37e37e2e9fccbed4 Mon Sep 17 00:00:00 2001 From: Michael Shanks Date: Thu, 20 Feb 2020 17:27:48 +0000 Subject: [PATCH] dodgy merge --- .../src/userInterface/ComponentSelectionList.svelte | 1 - .../builder/src/userInterface/ComponentsHierarchy.svelte | 8 ++++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/builder/src/userInterface/ComponentSelectionList.svelte b/packages/builder/src/userInterface/ComponentSelectionList.svelte index 19ce097775..91f5c73a74 100644 --- a/packages/builder/src/userInterface/ComponentSelectionList.svelte +++ b/packages/builder/src/userInterface/ComponentSelectionList.svelte @@ -116,7 +116,6 @@ {#if componentLibrary} - {#each $store.builtins.concat(componentLibrary.components) as component} {#each generate_components_list(componentLibrary.components) as component}
- 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