Skip to content

Commit

Permalink
fix(admin-ui): Fix error if no array of assets is provided (#1249)
Browse files Browse the repository at this point in the history
  • Loading branch information
Spielboerg authored Nov 30, 2021
1 parent e5feac4 commit 5af2b12
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export interface AssetChange {
export class ProductAssetsComponent {
@Input('assets') set assetsSetter(val: Asset[]) {
// create a new non-readonly array of assets
this.assets = val.slice();
this.assets = (val || []).slice();
}

@Input() featuredAsset: Asset | undefined;
Expand Down

0 comments on commit 5af2b12

Please sign in to comment.