Skip to content

Commit

Permalink
fix(core): Make featuredAsset optional on collection duplicator (#2824)
Browse files Browse the repository at this point in the history
  • Loading branch information
mschipperheyn authored May 2, 2024
1 parent 359b236 commit bb10b4c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const collectionDuplicator = new EntityDuplicator({
};
});
const collectionInput: CreateCollectionInput = {
featuredAssetId: collection.featuredAsset.id,
featuredAssetId: collection.featuredAsset?.id,
isPrivate: true,
assetIds: collection.assets.map(value => value.assetId),
parentId: collection.parentId,
Expand Down

0 comments on commit bb10b4c

Please sign in to comment.