Skip to content

Commit

Permalink
fix: view relation dialog requires browser refresh when navigating (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
dblythy authored Sep 21, 2022
1 parent 7b9f160 commit d60a8b7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/dashboard/Data/Browser/Browser.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,13 @@ class Browser extends DashboardView {
this.cancelPendingEditRows = this.cancelPendingEditRows.bind(this);

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

componentWillMount() {
Expand Down Expand Up @@ -832,6 +839,7 @@ class Browser extends DashboardView {
const url = `${this.getRelationURL()}${filterQueryString ? `?filters=${filterQueryString}` : ''}`;
history.push(url);
});
this.fetchRelation(relation, filters);
}

handlePointerClick({ className, id, field = 'objectId' }) {
Expand Down

0 comments on commit d60a8b7

Please sign in to comment.