bugfix: could not add template components
This commit is contained in:
parent
cd055586d2
commit
455803030d
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue