Unverified Commit 4a57d361 authored by Paul Kaplan's avatar Paul Kaplan Committed by GitHub

Merge pull request #2379 from paulkaplan/refresh-project-data

Refresh the data related to the project json on switch back from editor
parents 47a08e7d e49eb3a2
......@@ -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