Fix crash when evaluating data bindings for a component with no definition

This commit is contained in:
Andrew Kingston 2021-01-15 11:02:00 +00:00
parent ec4a4047b6
commit a6cbf46849
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ export const getBindableComponents = rootComponent => {
const componentSelector = component => { const componentSelector = component => {
const type = component._component const type = component._component
const definition = store.actions.components.getDefinition(type) const definition = store.actions.components.getDefinition(type)
return definition.bindable return definition?.bindable
} }
const components = findAllMatchingComponents(rootComponent, componentSelector) const components = findAllMatchingComponents(rootComponent, componentSelector)
return components.map(component => { return components.map(component => {