Skip to content

Commit 6f3dab6

Browse files
authored
fix: Empty table in data browser when navigating back using the "back” button (#2423)
1 parent 163bd8d commit 6f3dab6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ class Browser extends DashboardView {
179179
}
180180

181181
componentWillReceiveProps(nextProps, nextContext) {
182-
if (this.props.params.appId !== nextProps.params.appId || this.props.params.className !== nextProps.params.className || this.props.location.search !== nextProps.location.search) {
182+
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) {
183183
if (this.props.params.appId !== nextProps.params.appId || !this.props.params.className) {
184184
this.setState({ counts: {} });
185185
Parse.Object._clearAllState();

0 commit comments

Comments
 (0)