diff --git a/apps/desktop/src/app/app.component.ts b/apps/desktop/src/app/app.component.ts index 8e5feac57c3..39a5c185fde 100644 --- a/apps/desktop/src/app/app.component.ts +++ b/apps/desktop/src/app/app.component.ts @@ -232,8 +232,10 @@ export class AppComponent implements OnInit, OnDestroy { case "syncStarted": break; case "syncCompleted": - await this.updateAppMenu(); - this.configService.triggerServerConfigFetch(); + if (message.successfully) { + this.updateAppMenu(); + this.configService.triggerServerConfigFetch(); + } break; case "openSettings": await this.openModal(SettingsComponent, this.settingsRef); diff --git a/apps/web/src/app/app.component.ts b/apps/web/src/app/app.component.ts index 4109a8849fa..1f7d8cc2f1c 100644 --- a/apps/web/src/app/app.component.ts +++ b/apps/web/src/app/app.component.ts @@ -134,7 +134,9 @@ export class AppComponent implements OnDestroy, OnInit { case "syncStarted": break; case "syncCompleted": - this.configService.triggerServerConfigFetch(); + if (message.successfully) { + this.configService.triggerServerConfigFetch(); + } break; case "upgradeOrganization": { const upgradeConfirmed = await this.dialogService.openSimpleDialog({