提交 e72b6033 编写于 作者: S susiwen

Fix negetive number or string exist in dimensions array, the corresponding line won't show (#10343)

上级 96efad5b
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册