mirror of
https://gitee.com/ByteDance/flowgram.ai.git
synced 2025-07-07 17:43:29 +08:00
fix(node-engine): glob null drilldown error, typeof null is object (#417)
This commit is contained in:
parent
629a9e564f
commit
bf69e6cb89
@ -146,7 +146,7 @@ export namespace Glob {
|
||||
let curPaths: string[] = [];
|
||||
let curValue = obj;
|
||||
while (curKey) {
|
||||
let isObject = typeof curValue === 'object';
|
||||
let isObject = typeof curValue === 'object' && curValue !== null;
|
||||
if (!isObject) return [];
|
||||
// 匹配 *
|
||||
if (curKey === ALL) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user