Skip to content

Commit

Permalink
fix router page value inconsistent issue (#15742)
Browse files Browse the repository at this point in the history
* fix router page value inconsistent issue

* make the fix more universal as suggested

* minor
  • Loading branch information
fectrain committed Jan 26, 2024
1 parent 3e51224 commit 4e50a14
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions web-console/src/components/auto-form/auto-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ export interface Field<M> {
}

function toNumberOrUndefined(n: unknown): number | undefined {
if (n == null) return;
const r = Number(n);
return isNaN(r) ? undefined : r;
}
Expand Down

0 comments on commit 4e50a14

Please sign in to comment.