Skip to content
This repository has been archived by the owner on Dec 10, 2021. It is now read-only.

Commit

Permalink
refactor: use Number.isNaN instead of isNaN
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmud committed Apr 27, 2020
1 parent 1f9e493 commit 573140c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/superset-ui-query/src/buildQueryObject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default function buildQueryObject<T extends QueryFormData>(formData: T):
metrics: processMetrics(formData),
order_desc: typeof order_desc === 'undefined' ? true : order_desc,
orderby: [],
row_limit: row_limit == null || isNaN(numericRowLimit) ? undefined : numericRowLimit,
row_limit: row_limit == null || Number.isNaN(numericRowLimit) ? undefined : numericRowLimit,
since,
time_range,
timeseries_limit: limit ? Number(limit) : 0,
Expand Down

0 comments on commit 573140c

Please sign in to comment.