From fa8e1c9ab1c7e1897efd89155e9b37075b7927b3 Mon Sep 17 00:00:00 2001 From: tomlum Date: Wed, 8 Jun 2022 09:43:52 -0400 Subject: [PATCH] adds clarifying comment --- src/views/preview/project-view.jsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/views/preview/project-view.jsx b/src/views/preview/project-view.jsx index 59edcb286..2341a4fb7 100644 --- a/src/views/preview/project-view.jsx +++ b/src/views/preview/project-view.jsx @@ -717,6 +717,8 @@ class Preview extends React.Component { ); } render () { + + // Only show GUI if the project has no id, is a loaded local project, or has the project token loaded const showGUI = (!this.state.projectId || this.state.projectId === '0' || this.state.isProjectLoaded || (this.props.projectInfo && this.props.projectInfo.project_token));