From e49eb3a222f0ce3adadeafec837321a3487106db Mon Sep 17 00:00:00 2001 From: Paul Kaplan Date: Mon, 3 Dec 2018 15:15:18 -0500 Subject: [PATCH] Refresh the data related to the project json on switch back from editor --- src/views/preview/project-view.jsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/views/preview/project-view.jsx b/src/views/preview/project-view.jsx index f6ee780ff..0b48dbb80 100644 --- a/src/views/preview/project-view.jsx +++ b/src/views/preview/project-view.jsx @@ -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();