Skip to content

Commit

Permalink
fix: Empty table in data browser when navigating back using the "back…
Browse files Browse the repository at this point in the history
…” button (parse-community#2423)
  • Loading branch information
patelmilanun authored May 27, 2023
1 parent 163bd8d commit 6f3dab6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dashboard/Data/Browser/Browser.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ class Browser extends DashboardView {
}

componentWillReceiveProps(nextProps, nextContext) {
if (this.props.params.appId !== nextProps.params.appId || this.props.params.className !== nextProps.params.className || this.props.location.search !== nextProps.location.search) {
if (this.props.params.appId !== nextProps.params.appId || this.props.params.className !== nextProps.params.className || this.props.location.search !== nextProps.location.search || this.props.params?.relationName !== nextProps.params?.relationName) {
if (this.props.params.appId !== nextProps.params.appId || !this.props.params.className) {
this.setState({ counts: {} });
Parse.Object._clearAllState();
Expand Down

0 comments on commit 6f3dab6

Please sign in to comment.