diff --git a/src/modals/SelectMapModal.js b/src/modals/SelectMapModal.js index 2236bc5..c31465c 100644 --- a/src/modals/SelectMapModal.js +++ b/src/modals/SelectMapModal.js @@ -183,14 +183,16 @@ function SelectMapModal({ file.type, resolution.quality ); - const resizedBuffer = await blobToBuffer(resized.blob); - resolutions[resolution.id] = { - file: resizedBuffer, - width: resized.width, - height: resized.height, - type: "file", - id: resolution.id, - }; + if (resized.blob) { + const resizedBuffer = await blobToBuffer(resized.blob); + resolutions[resolution.id] = { + file: resizedBuffer, + width: resized.width, + height: resized.height, + type: "file", + id: resolution.id, + }; + } } }