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