Skip to content

Commit 87c1215

Browse files
committed
Fix number conversion
1 parent f700e57 commit 87c1215

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/extensions/advancedcharts/chart/radar/RadarChart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const NeoRadarChart = (props: ChartProps) => {
6767
const entry = {};
6868
selection.values.concat([selection.index]).forEach((k) => {
6969
const fieldIndex = r._fieldLookup[k];
70-
if (k !== selection.index && isNaN(r._fields[fieldIndex])) {
70+
if (k !== selection.index && Number.isNaN(r._fields[fieldIndex])) {
7171
valid = false;
7272
}
7373
entry[k] = `${r._fields[fieldIndex]}`;

0 commit comments

Comments
 (0)