Skip to content

Commit 93f82cf

Browse files
committed
Simplify null check
1 parent 6a090c1 commit 93f82cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/steps/ValidationStep/ValidationStep.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export const ValidationStep = <T extends string>({ initialData, file }: Props<T>
5555
acc[realIndex] = rows[index]
5656
return acc
5757
}, {} as Record<number, (typeof data)[number]>)
58-
const realIndexes = changes == null ? undefined : Object.keys(changes).map((index) => Number(index))
58+
const realIndexes = changes && Object.keys(changes).map((index) => Number(index))
5959
const newData = Object.assign([], data, changes)
6060
updateData(newData, realIndexes)
6161
},

0 commit comments

Comments
 (0)