diff --git a/packages/builder/src/stores/builder/screenComponent.ts b/packages/builder/src/stores/builder/screenComponent.ts index 5ff7258bb2..841607e835 100644 --- a/packages/builder/src/stores/builder/screenComponent.ts +++ b/packages/builder/src/stores/builder/screenComponent.ts @@ -81,6 +81,10 @@ function getInvalidDatasources( "dataSource", ])) { const componentSettings = component[setting.key] + if (!componentSettings) { + continue + } + const { label } = componentSettings const type = componentSettings.type as UIDatasourceType