From 262df46fac2282e4e2409a6aeff0ead38a205350 Mon Sep 17 00:00:00 2001 From: Zhihe Li Date: Wed, 4 Oct 2023 18:57:17 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Fix=20edge=20case=20with?= =?UTF-8?q?=20showing=20host=20modal=20(#1939)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ✅ Closes: ICU-11285 --- .../app/routes/scopes/scope/projects/targets/target.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; + }); } } }