Skip to content

Commit 43014bb

Browse files
committed
Fix refreshing for preview when auto refresh is not on
Fixes codesandbox#2373
1 parent 3373eb2 commit 43014bb

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,9 @@ class PreviewComponent extends Component<Props, State> {
125125
const settings = this.props.store.preferences.settings;
126126

127127
if (
128-
settings.livePreviewEnabled &&
129128
change &&
130-
this.props.store.editor.currentSandbox.template === 'static'
129+
(this.props.store.editor.currentSandbox.template === 'static' ||
130+
!settings.livePreviewEnabled)
131131
) {
132132
preview.handleRefresh();
133133
}

0 commit comments

Comments
 (0)