Skip to content
Snippets Groups Projects
Commit e9d33f83 authored by Ray Schamp's avatar Ray Schamp
Browse files

Stop clobbering loading projects with default data

If the app is loading with an initial project id, don't try to load the default project. Previously, this data would load on top of the project being loaded.

Does not fix the issue of blocks not loading in the blocks pane, which appears to be separate.
parent 50771151
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,7 @@ class App extends React.Component {
this.updateProject = this.updateProject.bind(this);
this.state = {
projectId: null,
projectData: JSON.stringify(ProjectLoader.DEFAULT_PROJECT_DATA)
projectData: this.fetchProjectId().length ? null : ProjectLoader.DEFAULT_PROJECT_DATA
};
}
componentDidMount () {
......@@ -49,6 +49,7 @@ class App extends React.Component {
}
}
render () {
if (this.state.projectData === null) return null;
return (
<GUI
basePath={this.props.basePath}
......
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