Skip to content

Commit

Permalink
[@mantine/form] Fix error thrown for nullable values dirty status che…
Browse files Browse the repository at this point in the history
…ck (#6672)
  • Loading branch information
rtivital committed Aug 26, 2024
1 parent 564d0c1 commit e10e3bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@mantine/form/src/paths/get-path.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export function getPath(path: unknown, values: unknown): unknown {

let value = values[splittedPath[0] as keyof typeof values];
for (let i = 1; i < splittedPath.length; i += 1) {
if (value === undefined) {
if (value == null) {
break;
}

Expand Down

0 comments on commit e10e3bf

Please sign in to comment.