This is an automated email from the ASF dual-hosted git repository.
asdf2014 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/druid.git
The following commit(s) were added to refs/heads/master by this push:
new 4e50a14d509 fix router page value inconsistent issue (#15742)
4e50a14d509 is described below
commit 4e50a14d50982a959b8f289120453e1ab7abde59
Author: Sensor <[email protected]>
AuthorDate: Fri Jan 26 11:02:30 2024 +0800
fix router page value inconsistent issue (#15742)
* fix router page value inconsistent issue
* make the fix more universal as suggested
* minor
---
web-console/src/components/auto-form/auto-form.tsx | 1 +
1 file changed, 1 insertion(+)
diff --git a/web-console/src/components/auto-form/auto-form.tsx
b/web-console/src/components/auto-form/auto-form.tsx
index 357046876af..6583249c5a6 100644
--- a/web-console/src/components/auto-form/auto-form.tsx
+++ b/web-console/src/components/auto-form/auto-form.tsx
@@ -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;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]