Skip to content

Commit be5e46a

Browse files
committed
feat: Fix duplicate key validation in KeyValueTable.component.tsx
1 parent 29395b4 commit be5e46a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Shared/Components/KeyValueTable/KeyValueTable.component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export const KeyValueTable = <K extends string>({
107107
)
108108

109109
const validationSchema: typeof parentValidationSchema = (value, key) => {
110-
if (validateDuplicateKeys && updatedRowsKeysFrequency[value] > 1) {
110+
if (validateDuplicateKeys && key === firstHeaderKey && updatedRowsKeysFrequency[value] > 1) {
111111
return false
112112
}
113113

0 commit comments

Comments
 (0)