Skip to content

Commit 76313a7

Browse files
committed
fix
1 parent d46ee44 commit 76313a7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/dashboard/Data/Views/Views.react.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ class Views extends TableView {
8181
}
8282
if (this.props.params.name !== nextProps.params.name || this.context !== nextContext) {
8383
window.scrollTo({ top: 0 });
84+
// Clear table state immediately when switching views to prevent data retention
85+
this.setState({ data: [], order: [], columns: {}, tableWidth: 0 });
8486
this.loadData(nextProps.params.name);
8587
}
8688
}

0 commit comments

Comments
 (0)