Skip to content

Commit 5d43d13

Browse files
author
Ives van Hoorne
committed
Only set view if it's not empty
1 parent 8dc4df1 commit 5d43d13

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/app/src/app/store/actions.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,9 @@ export const setSandboxConfigOptions = ({ state }) => {
8888
if (config && config.parsed) {
8989
const view = config.parsed.view;
9090

91-
state.set('editor.previewWindow.content', view);
91+
if (view) {
92+
state.set('editor.previewWindow.content', view);
93+
}
9294
}
9395
};
9496

0 commit comments

Comments
 (0)