Skip to content

Commit 2dfe508

Browse files
committed
typecheck
1 parent 3376e22 commit 2dfe508

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

frontend/src/core/cells/__tests__/cells.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,10 @@ describe("cell reducer", () => {
111111
state = reducer(state, action);
112112
for (const [cellId, handle] of Object.entries(state.cellHandles)) {
113113
if (!handle.current) {
114+
const view = createEditor(state.cellData[cellId as CellId].code);
114115
const handle: CellHandle = {
115-
editorView: createEditor(state.cellData[cellId as CellId].code),
116+
editorView: view,
117+
editorViewOrNull: view,
116118
};
117119
state.cellHandles[cellId as CellId] = { current: handle };
118120
}

frontend/src/core/codemirror/copilot/__tests__/getCode.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ function createMockEditorView(code: string) {
6060

6161
return {
6262
editorView: view,
63+
editorViewOrNull: view,
6364
};
6465
}
6566

0 commit comments

Comments
 (0)