Skip to content

Commit

Permalink
fix(resources/api): allow svg xml format (#4705)
Browse files Browse the repository at this point in the history
  • Loading branch information
devnote-dev authored Feb 23, 2023
1 parent 2a7833c commit aea5c47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/scripts/api/transformers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const rawDataToFileObject = (data: FractalResponseData): FileObject => ({
isEditable: function () {
if (this.isArchiveType() || !this.isFile) return false;

const matches = ['application/jar', 'application/octet-stream', 'inode/directory', /^image\//];
const matches = ['application/jar', 'application/octet-stream', 'inode/directory', /^image\/(?!svg\+xml)/];

return matches.every((m) => !this.mimetype.match(m));
},
Expand Down

0 comments on commit aea5c47

Please sign in to comment.