File tree 4 files changed +4
-4
lines changed
chart/parameter/component
extensions/advancedcharts/chart
4 files changed +4
-4
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 || Number . isNaN ( newValue . $y ) || Number . isNaN ( newValue . $m ) || Number . isNaN ( newValue . $d ) ) {
58
+ if ( ! newValue || isNaN ( newValue . $y ) || isNaN ( newValue . $m ) || 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 ( Number . isNaN ( score ) ) {
45
+ if ( isNaN ( score ) ) {
46
46
return < NoDrawableDataErrorMessage /> ;
47
47
}
48
48
if ( score . low != undefined ) {
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ const NeoRadarChart = (props: ChartProps) => {
67
67
const entry = { } ;
68
68
selection . values . concat ( [ selection . index ] ) . forEach ( ( k ) => {
69
69
const fieldIndex = r . _fieldLookup [ k ] ;
70
- if ( k !== selection . index && Number . isNaN ( r . _fields [ fieldIndex ] ) ) {
70
+ if ( k !== selection . index && isNaN ( r . _fields [ fieldIndex ] ) ) {
71
71
valid = false ;
72
72
}
73
73
entry [ k ] = `${ r . _fields [ fieldIndex ] } ` ;
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 && ! Number . isNaN ( value . properties [ labelProperty ] ) ) {
89
+ } else if ( value . properties [ labelProperty ] !== undefined && ! 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