File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
chart/parameter/component
extensions/advancedcharts/chart Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ const DatePickerParameterSelectComponent = (props: ParameterSelectProps) => {
55
55
setInputDate ( newValue ) ;
56
56
57
57
// Check whether the user has inputted a valid year. If not, do not update the parameter.
58
- if ( ! newValue || isNaN ( newValue . $y ) || isNaN ( newValue . $m ) || isNaN ( newValue . $d ) ) {
58
+ if ( ! newValue || Number . isNaN ( newValue . $y ) || Number . isNaN ( newValue . $m ) || Number . isNaN ( newValue . $d ) ) {
59
59
return ;
60
60
}
61
61
if ( newValue == null && clearParameterOnFieldClear ) {
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ const NeoGaugeChart = (props: ChartProps) => {
42
42
const chartId = createUUID ( ) ;
43
43
let score = records && records [ 0 ] && records [ 0 ] . _fields && records [ 0 ] . _fields [ 0 ] ? records [ 0 ] . _fields [ 0 ] : '' ;
44
44
45
- if ( isNaN ( score ) ) {
45
+ if ( Number . isNaN ( score ) ) {
46
46
return < NoDrawableDataErrorMessage /> ;
47
47
}
48
48
if ( score . low != undefined ) {
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ const NeoSankeyChart = (props: ChartProps) => {
86
86
properties : value . properties ,
87
87
value : 1 ,
88
88
} ) ;
89
- } else if ( value . properties [ labelProperty ] !== undefined && ! isNaN ( value . properties [ labelProperty ] ) ) {
89
+ } else if ( value . properties [ labelProperty ] !== undefined && ! Number . isNaN ( value . properties [ labelProperty ] ) ) {
90
90
addItem ( links [ `${ value . start . low } ,${ value . end . low } ` ] , {
91
91
id : value . identity . low ,
92
92
source : value . start . low ,
You can’t perform that action at this time.
0 commit comments