提交 20688589 编写于 作者: S susiwen

Check if dataDims[0] type is number or not

上级 e72b6033
......@@ -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] == null) {
if (dataDims.length === 1 && typeof dataDims[0] === 'number' && dataDims[0] < 0) {
encodeDef.set(coordDim, false);
return;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册