chore: prohibit unnecessary await (#4586)

This commit is contained in:
Alex Yang
2023-10-12 00:04:58 -05:00
committed by GitHub
parent 5ebd82dc04
commit d05897b724
19 changed files with 104 additions and 104 deletions

View File

@@ -190,7 +190,7 @@ const ImagePreviewModalImpl = (
if (typeof blockId === 'string') {
const block = page.getBlockById(blockId) as ImageBlockModel;
assertExists(block);
const store = await block.page.blobs;
const store = block.page.blobs;
const url = store?.get(block.sourceId);
const img = await url;
if (!img) {