Skip to content

Commit 027f1ed

Browse files
authored
fix: Warning dialog is shown after executing script on selected rows (#2899)
1 parent d11da9b commit 027f1ed

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/dashboard/Data/Browser/Browser.react.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1721,7 +1721,10 @@ class Browser extends DashboardView {
17211721
totalErrorCount > 0
17221722
);
17231723
}
1724-
this.refresh();
1724+
this.setState(
1725+
{ selection: {}, showExecuteScriptRowsDialog: false },
1726+
() => this.refresh()
1727+
);
17251728
} catch (e) {
17261729
this.showNote(e.message, true);
17271730
console.log(`Could not run ${script.title}: ${e}`);

0 commit comments

Comments
 (0)