Browse Source

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

gh-pages
Andrew Kingston 6 years ago
parent
commit
55f8babacc
  1. 2
      packages/builder/src/builderStore/dataBinding.js

2
packages/builder/src/builderStore/dataBinding.js

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

Loading…
Cancel
Save