mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-23 11:31:57 +03:00
QFIX for blob. check in collaborator editor (#5928)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
parent
4dcfc5e533
commit
5145a91a62
@ -40,7 +40,7 @@ async function fetchContent (blob: Ref<Blob>, doc: YDoc): Promise<boolean> {
|
|||||||
async function fetchBlobContent (_id: Ref<Blob>): Promise<Uint8Array | undefined> {
|
async function fetchBlobContent (_id: Ref<Blob>): Promise<Uint8Array | undefined> {
|
||||||
try {
|
try {
|
||||||
const blob = (await getClient().findOne(core.class.Blob, { _id })) as BlobLookup
|
const blob = (await getClient().findOne(core.class.Blob, { _id })) as BlobLookup
|
||||||
if (blob.size === 0) {
|
if (blob?.size === 0) {
|
||||||
return undefined
|
return undefined
|
||||||
}
|
}
|
||||||
const href = await getBlobHref(blob, _id)
|
const href = await getBlobHref(blob, _id)
|
||||||
|
Loading…
Reference in New Issue
Block a user