Skip to content

Commit

Permalink
fix(upload): ignore unsupported formats of image previews
Browse files Browse the repository at this point in the history
Signed-off-by: Maksim Sukharev <[email protected]>
  • Loading branch information
Antreesy authored and backportbot[bot] committed Sep 10, 2024
1 parent 75c828c commit 7377552
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ export default {
},
hasTemporaryImageUrl() {
return this.file.mimetype.startsWith('image/') && this.file.localUrl
return SHARED_ITEM.MEDIA_ALLOWED_PREVIEW.includes(this.file.mimetype) && this.file.localUrl
},
wrapperTabIndex() {
Expand Down

0 comments on commit 7377552

Please sign in to comment.