Skip to content

Commit 2873e44

Browse files
committed
frontend val
1 parent 83b3a1f commit 2873e44

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

frontend/src/core/components/tools/shared/createToolFlow.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React from 'react';
22
import { Stack } from '@mantine/core';
33
import { createToolSteps, ToolStepProvider } from '@app/components/tools/shared/ToolStep';
4-
import { OperationButtonProps } from '@app/components/tools/shared/OperationButton';
54
import { ScopedOperationButton } from '@app/components/tools/shared/ScopedOperationButton';
65
import { ToolOperationHook } from '@app/hooks/tools/shared/useToolOperation';
76
import { ToolWorkflowTitle, ToolWorkflowTitleProps } from '@app/components/tools/shared/ToolWorkflowTitle';

frontend/src/core/tools/Compare.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ const Compare = (props: BaseToolProps) => {
9494
}, []);
9595

9696
// On mount: clear selections unless exactly 2 files are loaded.
97-
// eslint-disable-next-line react-hooks/exhaustive-deps
9897
useEffect(() => {
9998
if ((fileState.files.ids as FileId[]).length !== 2) {
10099
fileActions.clearSelections();
@@ -104,7 +103,6 @@ const Compare = (props: BaseToolProps) => {
104103
// Map workbench selection → slots (1st = Original, 2nd = Edited, max 2).
105104
// If exactly 2 files exist, auto-fill both slots immediately.
106105
// Excludes params from deps to avoid conflicting with direct picker updates.
107-
// eslint-disable-next-line react-hooks/exhaustive-deps
108106
useEffect(() => {
109107
const selectedIds = fileState.ui.selectedFileIds as FileId[];
110108
const allIds = fileState.files.ids as FileId[];
@@ -130,10 +128,9 @@ const Compare = (props: BaseToolProps) => {
130128
if (prev.baseFileId === nextBase && prev.comparisonFileId === nextComp) return prev;
131129
return { ...prev, baseFileId: nextBase, comparisonFileId: nextComp };
132130
});
133-
}, [fileState.ui.selectedFileIds, fileState.files.ids]); // eslint-disable-line react-hooks/exhaustive-deps
131+
}, [fileState.ui.selectedFileIds, fileState.files.ids]);
134132

135133
// Clear a slot if its file is removed from the workbench.
136-
// eslint-disable-next-line react-hooks/exhaustive-deps
137134
useEffect(() => {
138135
const allIds = fileState.files.ids as FileId[];
139136
if (params.baseFileId && !allIds.includes(params.baseFileId as FileId)) {
@@ -142,7 +139,7 @@ const Compare = (props: BaseToolProps) => {
142139
if (params.comparisonFileId && !allIds.includes(params.comparisonFileId as FileId)) {
143140
base.params.setParameters(prev => ({ ...prev, comparisonFileId: null }));
144141
}
145-
}, [fileState.files.ids]); // eslint-disable-line react-hooks/exhaustive-deps
142+
}, [fileState.files.ids]);
146143

147144
// Track workbench data and drive loading/result state transitions
148145
const lastProcessedAtRef = useRef<number | null>(null);

0 commit comments

Comments
 (0)