We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c152e72 commit 20a262fCopy full SHA for 20a262f
frontend/src/pages/SubProjects/SubProjectContainer.js
@@ -71,6 +71,16 @@ class SubProjectContainer extends Component {
71
}
72
73
componentDidUpdate(prevProps) {
74
+ if (this.props.router.location.pathname !== prevProps.router.location.pathname) {
75
+ const newProjectId = this.props.router.location.pathname.split("/")[2];
76
+ if (newProjectId !== this.projectId) {
77
+ this.setState({ isDataFetched: false });
78
+ this.projectId = newProjectId;
79
+ this.props.setSelectedView(this.projectId, "project");
80
+ this.props.fetchAllProjectDetails(this.projectId, true);
81
+ this.setState({ isDataFetched: true });
82
+ }
83
84
const searchTermChanges = this.props.searchTerm !== prevProps.searchTerm;
85
const projectsChange = !_isEqual(this.props.subProjects, prevProps.subProjects);
86
0 commit comments