diff --git a/ui/desktop/app/routes/scopes/scope/projects/targets/target.js b/ui/desktop/app/routes/scopes/scope/projects/targets/target.js index a55f4d457..c4913e7ea 100644 --- a/ui/desktop/app/routes/scopes/scope/projects/targets/target.js +++ b/ui/desktop/app/routes/scopes/scope/projects/targets/target.js @@ -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; + }); } } }