Skip to content

Commit 95d3e96

Browse files
committed
Added clear-console in handleSandboxChange
1 parent 76aa314 commit 95d3e96

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ class BasePreview extends React.Component<Props, State> {
241241
this.serverPreview = getTemplate(sandbox.template).isServer;
242242

243243
resetState();
244+
dispatch({ type: 'clear-console' });
244245

245246
const url = this.currentUrl();
246247

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1144,7 +1144,7 @@
11441144
exec-sh "^0.3.2"
11451145
minimist "^1.2.0"
11461146

1147-
"@codesandbox/template-icons@^1.0.1", "@codesandbox/template-icons@^1.01":
1147+
"@codesandbox/template-icons@^1.0.1":
11481148
version "1.0.1"
11491149
resolved "https://registry.yarnpkg.com/@codesandbox/template-icons/-/template-icons-1.0.1.tgz#c29068ce93d7d1db8dfbf0c82d618ee7192d9fb8"
11501150
integrity sha512-o7Zgw88GoV/xogZ56rwXFohIYoYsB2UiKERC49Y1yuwV6SFAshPLdUBx9GX6HAHLUQg5R0pOoRrSeEsan+dHEw==

0 commit comments

Comments
 (0)