Skip to content

Commit 76f38dc

Browse files
committed
Fix static template relaoding
1 parent d92624f commit 76f38dc

File tree

1 file changed

+2
-4
lines changed
  • packages/app/src/app/pages/Sandbox/Editor/Content/Preview

1 file changed

+2
-4
lines changed

packages/app/src/app/pages/Sandbox/Editor/Content/Preview/index.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,8 @@ class Preview extends Component<Props, State> {
123123

124124
handleModuleSyncedChange = (preview, change) => {
125125
const settings = this.props.store.preferences.settings;
126-
const isServer = getTemplate(
127-
this.props.store.editor.currentSandbox.template
128-
).isServer;
129-
if ((isServer || !settings.livePreviewEnabled) && change) {
126+
127+
if (settings.livePreviewEnabled && change) {
130128
if (this.props.store.editor.currentSandbox.template === 'static') {
131129
preview.handleRefresh();
132130
} else {

0 commit comments

Comments
 (0)