Skip to content

Commit c6334cd

Browse files
authored
fix: Data browser export triggers confirmation dialog for navigating with selected rows (#3037)
1 parent 759cfac commit c6334cd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2765,12 +2765,13 @@ class Browser extends DashboardView {
27652765
/>
27662766
);
27672767
}
2768+
const selectionCount = Object.keys(this.state.selection).length;
27682769
return (
27692770
<div>
27702771
<Helmet>
27712772
<title>{pageTitle}</title>
27722773
</Helmet>
2773-
<SelectedRowsNavigationPrompt when={Object.keys(this.state.selection).length > 0} />
2774+
<SelectedRowsNavigationPrompt when={selectionCount > 0 && !this.state.exporting} />
27742775
{browser}
27752776
{notification}
27762777
{extras}

0 commit comments

Comments
 (0)