Skip to content

Commit 3274603

Browse files
committed
restore useless changes
Signed-off-by: basseche <[email protected]>
1 parent e1105c2 commit 3274603

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/components/inputs/reactHookForm/DirectoryItemsInput.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ export function DirectoryItemsInput({
118118
remove(getValues(name).findIndex((item: FieldValues) => item.id === chip));
119119
});
120120
}
121-
122121
values.forEach((value) => {
123122
const { icon, children, ...otherElementAttributes } = value;
124123

@@ -137,7 +136,7 @@ export function DirectoryItemsInput({
137136
setDirectoryItemSelectorOpen(false);
138137
setSelected([]);
139138
},
140-
[selected, remove, getValues, name, snackError, append, onRowChanged, onChange]
139+
[append, getValues, snackError, name, onRowChanged, onChange, selected, remove]
141140
);
142141

143142
const removeElements = useCallback(
@@ -146,7 +145,7 @@ export function DirectoryItemsInput({
146145
onRowChanged?.(true);
147146
onChange?.(getValues(name));
148147
},
149-
[remove, onRowChanged, onChange, getValues, name]
148+
[onRowChanged, remove, getValues, name, onChange]
150149
);
151150

152151
const handleChipClick = useCallback(

src/utils/constants/fieldConstants.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ export enum FieldConstants {
3838
NOMINAL_VOLTAGE_3 = 'nominalVoltage3',
3939
NOMINAL_VOLTAGE = 'nominalVoltage',
4040
OPERATION_TYPE = 'type',
41-
PATH_NAME = 'pathName',
4241
PROPERTY_NAME = 'propertyName',
4342
PROPERTY_OPERATOR = 'propertyOperator',
4443
PROPERTY = 'PROPERTY',

0 commit comments

Comments
 (0)