File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
packages/app/src/app/overmind Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -216,8 +216,8 @@ export const refetchSandboxInfo: AsyncAction = async ({
216216 effects,
217217 actions,
218218} ) => {
219- if ( state . editor . currentId ) {
220- const sandbox = state . editor . currentSandbox ;
219+ const sandbox = state . editor . currentSandbox ;
220+ if ( sandbox && sandbox . id ) {
221221 const updatedSandbox = await effects . api . getSandbox ( sandbox . id ) ;
222222
223223 sandbox . collection = updatedSandbox . collection ;
Original file line number Diff line number Diff line change 11import { blocker } from 'app/utils/blocker' ;
2+ import BasePreview from '@codesandbox/common/lib/components/Preview' ;
23
34import { Reaction } from '..' ;
45
5- let _preview = blocker < any > ( ) ;
6+ let _preview = blocker < BasePreview > ( ) ;
67let _reaction : Reaction ;
78
89export default {
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ export class Linter {
1414 private editor ;
1515 private monaco ;
1616 private isDisposed : boolean = false ;
17- // Can the template change during session of sandbox?
1817 constructor ( editor , monaco ) {
1918 this . editor = editor ;
2019 this . monaco = monaco ;
You can’t perform that action at this time.
0 commit comments