@docyrus/ui-pro-ai-assistant 0.5.5 → 0.5.6

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.
package/dist/index.js CHANGED
@@ -5055,7 +5055,8 @@ async function fetchEnums(apiClient, dataSourceId, baseUrl) {
5055
5055
  if (!res.success || !Array.isArray(res.data)) return null;
5056
5056
  const byFieldId = /* @__PURE__ */ new Map();
5057
5057
  for (const opt of res.data) {
5058
- const fieldId = opt.fieldId || opt.field_id || opt.tenant_field_id;
5058
+ const nestedField = opt.field;
5059
+ const fieldId = opt.fieldId || opt.field_id || opt.tenant_field_id || nestedField?.id;
5059
5060
  if (!fieldId) continue;
5060
5061
  let bucket = byFieldId.get(fieldId);
5061
5062
  if (!bucket) {