Skip to content

Commit

Permalink
fix: using browser navigation backward / forward button clears data b…
Browse files Browse the repository at this point in the history
…rowser (#2317)
  • Loading branch information
damianstasik committed Oct 17, 2022
1 parent bd975b0 commit 7d9b957
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/dashboard/Data/Browser/Browser.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,11 @@ class Browser extends DashboardView {
this.redirectToFirstClass = this.redirectToFirstClass.bind(this);

this.dataBrowserRef = React.createRef();

window.addEventListener('popstate', () => {
this.setState({
relation: null,
data: null,
relation: null
})
this.refresh();
});
}

Expand Down

0 comments on commit 7d9b957

Please sign in to comment.