未验证 提交 bc072296 编写于 作者: S sushuang 提交者: GitHub

Tweak the "is string" check.

Tweak the "is string" check. Should better be the same as the existing checking.
上级 20688589
......@@ -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 && typeof dataDims[0] === 'number' && dataDims[0] < 0) {
if (dataDims.length === 1 && !isString(dataDims[0]) && 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.
先完成此消息的编辑!
想要评论请 注册