Skip to content
Snippets Groups Projects
Unverified Commit d7430001 authored by chrisgarrity's avatar chrisgarrity Committed by GitHub
Browse files

Merge pull request #2077 from chrisgarrity/fix-null-projectid

Don’t load null project id
parents b2766c10 b7bea401
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