diff --git a/packages/core/src/data-import/providers/populator/populator.ts b/packages/core/src/data-import/providers/populator/populator.ts index 2fabfc1cc0..efd7dbf749 100644 --- a/packages/core/src/data-import/providers/populator/populator.ts +++ b/packages/core/src/data-import/providers/populator/populator.ts @@ -148,6 +148,7 @@ export class Populator { assetIds: assets.map(a => a.id.toString()), featuredAssetId: assets.length ? assets[0].id.toString() : undefined, filters, + inheritFilters: collectionDef.inheritFilters ?? true, }); collectionMap.set(collectionDef.name, collection); } diff --git a/packages/core/src/data-import/types.ts b/packages/core/src/data-import/types.ts index 351b2ba09e..5d70df430b 100644 --- a/packages/core/src/data-import/types.ts +++ b/packages/core/src/data-import/types.ts @@ -27,6 +27,7 @@ export interface CollectionDefinition { slug?: string; private?: boolean; filters?: CollectionFilterDefinition[]; + inheritFilters?: boolean; parentName?: string; assetPaths?: string[]; }