Skip to content

Commit c4b1277

Browse files
committed
Clean WorkspaceReducer
1 parent 0701892 commit c4b1277

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/commons/workspace/WorkspaceReducer.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -588,11 +588,6 @@ const newWorkspaceReducer = createReducer(defaultWorkspaceManager, builder => {
588588
throw new Error('Editor tab index must be non-negative!');
589589
}
590590
if (editorTabIndex >= state[workspaceLocation].editorTabs.length) {
591-
// TODO WHY DOES THIS GET CALLED????????????????????? its from Playground.tsx onChange?
592-
if (editorTabIndex === 0) {
593-
console.log("Warning: editorTabIndex = 0");
594-
return {...state};
595-
}
596591
throw new Error('Editor tab index must have a corresponding editor tab!');
597592
}
598593

0 commit comments

Comments
 (0)