diff --git a/src/store/files.js b/src/store/files.js index 8b55c3b03..4e0a003ae 100644 --- a/src/store/files.js +++ b/src/store/files.js @@ -51,6 +51,7 @@ const mutations = { if (file.fileid >= 0) { if (file.fileMetadataSize?.length > 1) { + file.fileMetadataSize = file.fileMetadataSize === '' ? '{}' : file.fileMetadataSize file.fileMetadataSizeParsed = JSON.parse(file.fileMetadataSize?.replace(/"/g, '"') ?? '{}') file.fileMetadataSizeParsed.width = file.fileMetadataSizeParsed?.width ?? 256 file.fileMetadataSizeParsed.height = file.fileMetadataSizeParsed?.height ?? 256