adds clarifying comment

This commit is contained in:
tomlum 2022-06-08 09:43:52 -04:00
parent ec7f8735f1
commit fa8e1c9ab1

View file

@ -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));