Skip to content
Snippets Groups Projects
Commit b7bea401 authored by chrisgarrity's avatar chrisgarrity
Browse files

Don’t load null project id

Only call updateProject to load the project if there is a project id, or it’s the default project id.
parent a5d31060
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,9 @@ const ProjectLoaderHOC = function (WrappedComponent) {
};
}
componentDidMount () {
this.updateProject(this.props.projectId);
if (this.props.projectId || this.props.projectId === 0) {
this.updateProject(this.props.projectId);
}
}
componentWillUpdate (nextProps) {
if (this.props.projectId !== nextProps.projectId) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment