Skip to content

Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.

fix(frontend:spaces): handle optional error message in notification

johavenfa1cd0858324
diff --git a/frontend/src/app/applications/spaces/components/spaces-browser.component.ts b/frontend/src/app/applications/spaces/components/spaces-browser.component.ts
index 1edcc3ff..d66cdce2 100644
--- a/frontend/src/app/applications/spaces/components/spaces-browser.component.ts
+++ b/frontend/src/app/applications/spaces/components/spaces-browser.component.ts
@@ -362,7 +362,7 @@ export class SpacesBrowserComponent implements OnInit, AfterViewInit, OnDestroy
this.forbiddenResource = e.status === 403
this.locationNotFound = e.status === 404
this.serverConnectionError = e.status === 0
- this.layout.sendNotification('error', 'Files', e.error.message || this.serverConnectionErrorMessage)
+ this.layout.sendNotification('error', 'Files', e.error?.message || this.serverConnectionErrorMessage)
}
this.loading = false
}