Skip to content

Commit a92bf42

Browse files
committed
fix: change check to secondHeaderKey instead of value in validateSchema for validateEmptyKeys
1 parent 211e939 commit a92bf42

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
@@ -113,7 +113,7 @@ export const KeyValueTable = <K extends string>({
113113
}
114114

115115
if (validateEmptyKeys && key === firstHeaderKey && !value) {
116-
const isValuePresentAtRow = updatedRows.some(({ id }) => id === rowId && value)
116+
const isValuePresentAtRow = updatedRows.some(({ id, data }) => id === rowId && data[secondHeaderKey].value)
117117
if (isValuePresentAtRow) {
118118
return true
119119
}

0 commit comments

Comments
 (0)