From d8ce46822823c43eab53f7435ec1e8aea1856b63 Mon Sep 17 00:00:00 2001 From: Michael Shanks Date: Tue, 25 Feb 2020 14:26:43 +0000 Subject: [PATCH] bugfix: could not add template components --- .../builder/src/userInterface/ComponentSelectionList.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/builder/src/userInterface/ComponentSelectionList.svelte b/packages/builder/src/userInterface/ComponentSelectionList.svelte index cf10bd0586..6c880fcee7 100644 --- a/packages/builder/src/userInterface/ComponentSelectionList.svelte +++ b/packages/builder/src/userInterface/ComponentSelectionList.svelte @@ -51,8 +51,8 @@ onTemplateChosen(component.template) } else { store.addChildComponent(component.name) + toggleTab() } - toggleTab(); } const onTemplateChosen = template => { @@ -75,6 +75,7 @@ selectedComponent = null const instance = templateInstances.find(i => i.name === selectedTemplateInstance) store.addTemplatedComponent(instance.props) + toggleTab() } function generate_components_list(components) {