fix: 🐛 Fix edge case with showing host modal (#1939)

✅ Closes: ICU-11285
This commit is contained in:
Zhihe Li authored and GitHub committed 2023-10-04 18:57:17 -04:00
1 parent 7993422b0d
commit 262df46fac
1 file changed
+5 -1
@@ -172,7 +172,11 @@ export default class ScopesScopeProjectsTargetsTargetRoute extends Route {
.confirm(e.message, { isConnectError: true })
// Retry
.then(() => this.connect(model, host))
.catch(() => null /* no op */);
.catch(() => {
// Reset the flag as this was user initiated and we're not
// in a transition or have a host modal open
this.isConnectionError = false;
});
}
}
}