mirror of https://github.com/apache/druid.git
fix router page value inconsistent issue (#15742)
* fix router page value inconsistent issue * make the fix more universal as suggested * minor
This commit is contained in:
parent
3e512249e3
commit
4e50a14d50
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue