mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-05 01:07:41 +02: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:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user