From c19b3b7841a067f7ec03d20c3e70de89e772dd69 Mon Sep 17 00:00:00 2001 From: Naumov Alexey Date: Wed, 13 Apr 2022 15:15:21 +0200 Subject: [PATCH] fix(core-app): CB-1720 show one error per init --- .../core-app/src/NavigationTree/NavigationTreeService.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/webapp/packages/core-app/src/NavigationTree/NavigationTreeService.ts b/webapp/packages/core-app/src/NavigationTree/NavigationTreeService.ts index 8984dc6907..5140b56311 100644 --- a/webapp/packages/core-app/src/NavigationTree/NavigationTreeService.ts +++ b/webapp/packages/core-app/src/NavigationTree/NavigationTreeService.ts @@ -85,9 +85,12 @@ export class NavigationTreeService extends View { return false; } - const connected = await this.tryInitConnection(connection.id); - - if (!connected) { + try { + const connected = await this.tryInitConnection(connection.id); + if (!connected) { + return false; + } + } catch { return false; } }