mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-09 07:08:11 +08:00
correctly handle float columns which only contain NaN (#848)
This commit is contained in:
@@ -71,7 +71,10 @@ class Continuous extends React.Component {
|
|||||||
|
|
||||||
const summary = obsAnnotations.col(key).summarize();
|
const summary = obsAnnotations.col(key).summarize();
|
||||||
const nonFiniteExtent =
|
const nonFiniteExtent =
|
||||||
summary.min === undefined || summary.max === undefined;
|
summary.min === undefined ||
|
||||||
|
summary.max === undefined ||
|
||||||
|
Number.isNaN(summary.min) ||
|
||||||
|
Number.isNaN(summary.max);
|
||||||
if (!summary.categorical && !nonFiniteExtent) {
|
if (!summary.categorical && !nonFiniteExtent) {
|
||||||
zebra += 1;
|
zebra += 1;
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user