Do not try to manage fullscreen mode URI for unsaved projects

This fixes the issue where you could go from /projects/editor => /projects/0/fullscreen by entering fullscreen mode on a new unsaved project.
This commit is contained in:
Paul Kaplan 2019-02-11 10:28:44 -05:00
parent 16ca2d7319
commit c6961aae36

View file

@ -410,6 +410,9 @@ class Preview extends React.Component {
this.setState({isProjectLoaded: true});
}
pushHistory (push) {
// Do not push history for projects without a real ID
if (this.state.projectId === '0') return;
// update URI to match mode
const idPath = this.state.projectId ? `${this.state.projectId}/` : '';
let modePath = '';