Skip to content

Commit

Permalink
Fix negetive number or string exist in dimensions array, the correspo…
Browse files Browse the repository at this point in the history
…nding line won't show (apache#10343)
  • Loading branch information
susiwen8 committed Apr 23, 2019
1 parent 96efad5 commit e72b603
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/data/helper/completeDimensions.js
Expand Up @@ -117,7 +117,7 @@ function completeDimensions(sysDims, source, opt) {
// Note: It is allowed that `dataDims.length` is `0`, e.g., options is
// `{encode: {x: -1, y: 1}}`. Should not filter anything in
// this case.
if (dataDims.length === 1 && dataDims[0] < 0) {
if (dataDims.length === 1 && dataDims[0] == null) {
encodeDef.set(coordDim, false);
return;
}
Expand Down

0 comments on commit e72b603

Please sign in to comment.