fix(resources/api): allow svg xml format (#4705)
This commit is contained in:
parent
2a7833ca17
commit
aea5c474db
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ export const rawDataToFileObject = (data: FractalResponseData): FileObject => ({
|
||||||
isEditable: function () {
|
isEditable: function () {
|
||||||
if (this.isArchiveType() || !this.isFile) return false;
|
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));
|
return matches.every((m) => !this.mimetype.match(m));
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue