From b7bea401701346ee94791741025b8000a502d996 Mon Sep 17 00:00:00 2001
From: chrisgarrity <chrisg@media.mit.edu>
Date: Tue, 15 May 2018 11:34:51 -0400
Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20load=20null=20project=20id?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Only call updateProject to load the project if there is a project id, or it’s the default project id.
---
 src/lib/project-loader-hoc.jsx | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/lib/project-loader-hoc.jsx b/src/lib/project-loader-hoc.jsx
index b513be019..5735e7295 100644
--- a/src/lib/project-loader-hoc.jsx
+++ b/src/lib/project-loader-hoc.jsx
@@ -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) {
-- 
GitLab