未验证 提交 401fcaf3 编写于 作者: O oooplz 提交者: GitHub

fix: 空数组覆盖有效数组 (#2687)

上级 5e8ef2f6
......@@ -43,7 +43,7 @@ function tryConstructArray(field: string, values: Recordable = {}): any[] | unde
set(result, index, values[k.trim()]);
});
return result.length ? result : undefined;
return result.filter(Boolean).length ? result : undefined;
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册