diff --git a/src/components/media-types/html/index.jsx b/src/components/media-types/html/index.jsx index a8cfd3468..d2e886718 100644 --- a/src/components/media-types/html/index.jsx +++ b/src/components/media-types/html/index.jsx @@ -55,7 +55,7 @@ export const HTMLComponent = (props) => { const unpackZipFiles = async () => { unpacking.current = true - const buffer = dataRUIToBuffer(previewUri) + const buffer = await dataRUIToBuffer(previewUri) try { const filesArr = await prepareFilesFromZIP(buffer) @@ -122,7 +122,7 @@ export const HTMLComponent = (props) => {