Skip to content

Commit b20aa47

Browse files
committed
Fix devtool tabs rendering
1 parent c3430fe commit b20aa47

File tree

1 file changed

+6
-3
lines changed
  • packages/app/src/app/overmind/namespaces/editor

1 file changed

+6
-3
lines changed

packages/app/src/app/overmind/namespaces/editor/state.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,15 +236,18 @@ export const state: State = {
236236
},
237237
devToolTabs: ({
238238
currentSandbox: sandbox,
239+
parsedConfigurations,
239240
workspaceConfigCode: intermediatePreviewCode,
240241
}) => {
241242
if (!sandbox) {
242243
return [];
243244
}
244245

245-
// TODO: Should this be code or files?
246-
// @ts-ignore
247-
const views = getPreviewTabs(sandbox, intermediatePreviewCode);
246+
const views = getPreviewTabs(
247+
sandbox,
248+
parsedConfigurations,
249+
intermediatePreviewCode
250+
);
248251

249252
// Do it in an immutable manner, prevents changing the original object
250253
return immer(views, draft => {

0 commit comments

Comments
 (0)