Commit e49eb3a2 authored by Paul Kaplan's avatar Paul Kaplan

Refresh the data related to the project json on switch back from editor

parent 39f13b50
......@@ -126,6 +126,11 @@ class Preview extends React.Component {
if (this.props.playerMode !== prevProps.playerMode || this.props.fullScreen !== prevProps.fullScreen) {
this.pushHistory(history.state === null);
}
// Switching out of editor mode, refresh data that comes from project json
if (this.props.playerMode && !prevProps.playerMode) {
this.getProjectData(this.state.projectId);
}
}
componentWillUnmount () {
this.removeEventListeners();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment