Skip to content

Commit 3991bef

Browse files
committed
Small feedback
1 parent 2f5e0fa commit 3991bef

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

packages/app/src/app/overmind/actions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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;

packages/app/src/app/overmind/effects/preview.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import { blocker } from 'app/utils/blocker';
2+
import BasePreview from '@codesandbox/common/lib/components/Preview';
23

34
import { Reaction } from '..';
45

5-
let _preview = blocker<any>();
6+
let _preview = blocker<BasePreview>();
67
let _reaction: Reaction;
78

89
export default {

packages/app/src/app/overmind/effects/vscode/Linter.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)