Skip to content

Commit

Permalink
feat(core): Add Missing inheritFilters field for Collection for Initi…
Browse files Browse the repository at this point in the history
…alData
  • Loading branch information
bhardwajakshit committed Nov 20, 2023
1 parent b40aa88 commit a3dad7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
1 change: 1 addition & 0 deletions packages/core/src/data-import/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export interface CollectionDefinition {
slug?: string;
private?: boolean;
filters?: CollectionFilterDefinition[];
inheritFilters?: boolean;
parentName?: string;
assetPaths?: string[];
}
Expand Down

0 comments on commit a3dad7a

Please sign in to comment.