From 5145a91a6252d4c07acdd615c3ee22b5446a3394 Mon Sep 17 00:00:00 2001 From: Andrey Sobolev Date: Thu, 27 Jun 2024 15:31:49 +0700 Subject: [PATCH] QFIX for blob. check in collaborator editor (#5928) Signed-off-by: Andrey Sobolev --- packages/text-editor/src/provider/storage.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/text-editor/src/provider/storage.ts b/packages/text-editor/src/provider/storage.ts index 808cacd96d..76863997ce 100644 --- a/packages/text-editor/src/provider/storage.ts +++ b/packages/text-editor/src/provider/storage.ts @@ -40,7 +40,7 @@ async function fetchContent (blob: Ref, doc: YDoc): Promise { async function fetchBlobContent (_id: Ref): Promise { try { const blob = (await getClient().findOne(core.class.Blob, { _id })) as BlobLookup - if (blob.size === 0) { + if (blob?.size === 0) { return undefined } const href = await getBlobHref(blob, _id)