bugfix: could not add template components

This commit is contained in:
Michael Shanks 2020-02-25 14:26:43 +00:00
parent cd055586d2
commit 455803030d
1 changed files with 2 additions and 1 deletions

View File

@ -51,8 +51,8 @@
onTemplateChosen(component.template) onTemplateChosen(component.template)
} else { } else {
store.addChildComponent(component.name) store.addChildComponent(component.name)
toggleTab()
} }
toggleTab();
} }
const onTemplateChosen = template => { const onTemplateChosen = template => {
@ -75,6 +75,7 @@
selectedComponent = null selectedComponent = null
const instance = templateInstances.find(i => i.name === selectedTemplateInstance) const instance = templateInstances.find(i => i.name === selectedTemplateInstance)
store.addTemplatedComponent(instance.props) store.addTemplatedComponent(instance.props)
toggleTab()
} }
function generate_components_list(components) { function generate_components_list(components) {