We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a090c1 commit 93f82cfCopy full SHA for 93f82cf
src/steps/ValidationStep/ValidationStep.tsx
@@ -55,7 +55,7 @@ export const ValidationStep = <T extends string>({ initialData, file }: Props<T>
55
acc[realIndex] = rows[index]
56
return acc
57
}, {} as Record<number, (typeof data)[number]>)
58
- const realIndexes = changes == null ? undefined : Object.keys(changes).map((index) => Number(index))
+ const realIndexes = changes && Object.keys(changes).map((index) => Number(index))
59
const newData = Object.assign([], data, changes)
60
updateData(newData, realIndexes)
61
},
0 commit comments