Skip to content

Commit

Permalink
Fix minor bug when no item type
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmi committed Oct 7, 2023
1 parent 991b089 commit 376aaef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/utils/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ export class ItemMediaUploader {

async upload(item) {
const template = itemTemplates[item.type];
if (!template) {
return item;
}
const itemCloned = JSON.parse(JSON.stringify(item));

await template.mapMedia(itemCloned, async (media) => {
Expand Down

1 comment on commit 376aaef

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.