mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-13 19:58:09 +00:00
ezqms-449: wrap initial collaborator content loading with try-catch (#4256)
Signed-off-by: Alexey Zinoviev <alexey.zinoviev@xored.com>
This commit is contained in:
parent
6cc84f0a7f
commit
e65783bfd2
@ -71,7 +71,12 @@ export class StorageExtension implements Extension {
|
||||
minioDocument = await this.getMinioDocument(documentId, token)
|
||||
} catch (err: any) {
|
||||
if (initialContentId !== undefined && initialContentId.length > 0) {
|
||||
minioDocument = await this.getMinioDocument(initialContentId, token)
|
||||
try {
|
||||
minioDocument = await this.getMinioDocument(initialContentId, token)
|
||||
} catch (err: any) {
|
||||
// Do nothing
|
||||
// Initial content document also might not have been initialized in minio (e.g. if it's an empty template)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user