Skip to content

Commit 777eb41

Browse files
authored
Blob content qfix2 (#5929)
Signed-off-by: Andrey Sobolev <[email protected]>
1 parent 5145a91 commit 777eb41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/text-editor/src/provider/storage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ async function fetchContent (blob: Ref<Blob>, doc: YDoc): Promise<boolean> {
4040
async function fetchBlobContent (_id: Ref<Blob>): Promise<Uint8Array | undefined> {
4141
try {
4242
const blob = (await getClient().findOne(core.class.Blob, { _id })) as BlobLookup
43-
if (blob?.size === 0) {
43+
if (blob === undefined || blob.size === 0) {
4444
return undefined
4545
}
4646
const href = await getBlobHref(blob, _id)

0 commit comments

Comments
 (0)