Skip to content

Commit fc3762d

Browse files
committed
lint
1 parent d61a8e7 commit fc3762d

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

apps/twig/src/renderer/features/panels/store/panelLayoutStore.ts

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,13 @@ export const usePanelLayoutStore = createWithEqualityFn<PanelLayoutStore>()(
300300
openFile: (taskId, filePath, asPreview = true) => {
301301
const tabId = createFileTabId(filePath);
302302
set((state) => {
303-
const afterOpenTab = openTab(state, taskId, tabId, asPreview, DEFAULT_PANEL_IDS.MAIN_PANEL);
303+
const afterOpenTab = openTab(
304+
state,
305+
taskId,
306+
tabId,
307+
asPreview,
308+
DEFAULT_PANEL_IDS.MAIN_PANEL,
309+
);
304310
const layout = afterOpenTab.taskLayouts[taskId];
305311
if (!layout) return afterOpenTab;
306312

@@ -327,7 +333,15 @@ export const usePanelLayoutStore = createWithEqualityFn<PanelLayoutStore>()(
327333

328334
openDiff: (taskId, filePath, status, asPreview = true) => {
329335
const tabId = createDiffTabId(filePath, status);
330-
set((state) => openTab(state, taskId, tabId, asPreview, DEFAULT_PANEL_IDS.MAIN_PANEL));
336+
set((state) =>
337+
openTab(
338+
state,
339+
taskId,
340+
tabId,
341+
asPreview,
342+
DEFAULT_PANEL_IDS.MAIN_PANEL,
343+
),
344+
);
331345

332346
// Track diff viewed
333347
const changeType =

0 commit comments

Comments
 (0)