Skip to content

Commit 18bfdfa

Browse files
author
Ives van Hoorne
committed
Check for null in tabs
1 parent 2f56208 commit 18bfdfa

File tree

1 file changed

+3
-1
lines changed
  • packages/app/src/app/pages/Sandbox/Editor/Workspace/OpenedTabs

1 file changed

+3
-1
lines changed

packages/app/src/app/pages/Sandbox/Editor/Workspace/OpenedTabs/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ const OpenedTabs = ({ store, signals }) => {
2020
moduleObject[m.shortid] = m;
2121
});
2222

23-
const openModules = store.editor.tabs.map(t => moduleObject[t.moduleShortid]);
23+
const openModules = store.editor.tabs
24+
.map(t => moduleObject[t.moduleShortid])
25+
.filter(x => x);
2426

2527
return (
2628
<WorkspaceItem

0 commit comments

Comments
 (0)