Skip to content

Commit 4a4bdce

Browse files
committed
Make sure to show sandbox in preview, even if not initialized
1 parent a3b21c0 commit 4a4bdce

File tree

1 file changed

+6
-0
lines changed
  • packages/common/src/components/Preview

1 file changed

+6
-0
lines changed

packages/common/src/components/Preview/index.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,12 @@ class BasePreview extends React.Component<Props, State> {
223223
}
224224

225225
(window as any).openNewWindow = this.openNewWindow;
226+
227+
setTimeout(() => {
228+
if (this.state.showScreenshot) {
229+
this.setState({ showScreenshot: false });
230+
}
231+
}, 800);
226232
}
227233

228234
initializeLastSent = () => {

0 commit comments

Comments
 (0)