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

Merge pull request #325 from rschamp/bugfix/project-clobbering

Stop clobbering loading projects with default data
parents 60830fe9 e9d33f83
Branches
Tags
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.
Please to comment