@next-libs/cmdb-instances 7.21.6 → 7.21.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1180,7 +1180,9 @@ function LegacyInstanceList(props) {
1180
1180
  if (!Array.isArray(query[key]) && isSpecialFn(query, key)) {
1181
1181
  queries.push(query);
1182
1182
  } else {
1183
- const fieldId = Object.keys(query[key][0])[0];
1183
+ var _Object$keys;
1184
+ // 多枚举值数据结构返回这种 {attrId: {$in:[]}}
1185
+ const fieldId = ((_Object$keys = Object.keys((0, _lodash.get)(query[key], "[0]", {}))) === null || _Object$keys === void 0 ? void 0 : _Object$keys[0]) || key;
1184
1186
  // 判断是否为结构体
1185
1187
  const isStruct = isOfStruct(modelData, fieldId);
1186
1188
  // 结构体情况处理