From 87f1d9c436d67a4ca3d28c0ae880be51efe11008 Mon Sep 17 00:00:00 2001 From: Manuel <5673677+mtrezza@users.noreply.github.com> Date: Mon, 14 Jul 2025 01:48:35 +0200 Subject: [PATCH] fix: suppress leave warning after script refresh --- src/dashboard/Data/Browser/Browser.react.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/dashboard/Data/Browser/Browser.react.js b/src/dashboard/Data/Browser/Browser.react.js index c524607f01..5488e8b0e7 100644 --- a/src/dashboard/Data/Browser/Browser.react.js +++ b/src/dashboard/Data/Browser/Browser.react.js @@ -1721,7 +1721,10 @@ class Browser extends DashboardView { totalErrorCount > 0 ); } - this.refresh(); + this.setState( + { selection: {}, showExecuteScriptRowsDialog: false }, + () => this.refresh() + ); } catch (e) { this.showNote(e.message, true); console.log(`Could not run ${script.title}: ${e}`);