diff --git a/packages/core/src/data_sources/model/collection_component/CollectionComponent.ts b/packages/core/src/data_sources/model/collection_component/CollectionComponent.ts index 7521bd268..fe6d64d92 100644 --- a/packages/core/src/data_sources/model/collection_component/CollectionComponent.ts +++ b/packages/core/src/data_sources/model/collection_component/CollectionComponent.ts @@ -83,11 +83,13 @@ function getCollectionItems( ) { const { collection_name, block, config } = collectionDefinition; if (!block) { - throw new Error('The "block" property is required in the collection definition.'); + em.logError('The "block" property is required in the collection definition.'); + return []; } if (!config?.dataSource) { - throw new Error('The "config.dataSource" property is required in the collection definition.'); + em.logError('The "config.dataSource" property is required in the collection definition.'); + return []; } const components: ComponentDefinition[] = []; diff --git a/packages/core/src/data_sources/model/collection_component/CollectionVariable.ts b/packages/core/src/data_sources/model/collection_component/CollectionVariable.ts index c9ebd1e47..de6eecedb 100644 --- a/packages/core/src/data_sources/model/collection_component/CollectionVariable.ts +++ b/packages/core/src/data_sources/model/collection_component/CollectionVariable.ts @@ -20,9 +20,6 @@ export default class CollectionVariable extends Model