@steedos-widgets/amis-object 1.1.12 → 1.1.13

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.
@@ -1,6 +1,6 @@
1
1
  import React, { useState, useEffect, createElement } from 'react';
2
2
  import * as ___default from 'lodash';
3
- import ___default__default, { isEmpty, isArray, each, find, endsWith, cloneDeep, includes, map, keys, sortBy, compact, toArray, mergeWith, isString, union, slice, defaultsDeep as defaultsDeep$1, isObject as isObject$1, filter, get, isBoolean, omitBy, isNil, has, startsWith, isFunction, difference, pick, pickBy, random, assign, isNumber } from 'lodash';
3
+ import ___default__default, { isEmpty, isArray, each, find, endsWith, cloneDeep, includes, map, keys, sortBy, compact, toArray, mergeWith, isString, union, has, slice, defaultsDeep as defaultsDeep$1, isObject as isObject$1, filter, get, isBoolean, omitBy, isNil, startsWith, isFunction, difference, pick, pickBy, random, assign, isNumber } from 'lodash';
4
4
  import { Dropdown, Tabs, Spin, Badge, Modal as Modal$1, message, notification, Button, Space, Drawer as Drawer$1 } from 'antd';
5
5
  import ReactDOM, { createRoot } from 'react-dom';
6
6
 
@@ -7673,7 +7673,7 @@ const getRecordPermissions = async (objectName, recordId)=>{
7673
7673
  * @Author: baozhoutao@steedos.com
7674
7674
  * @Date: 2022-07-05 15:55:39
7675
7675
  * @LastEditors: Please set LastEditors
7676
- * @LastEditTime: 2023-04-18 19:13:30
7676
+ * @LastEditTime: 2023-04-20 11:43:14
7677
7677
  * @Description:
7678
7678
  */
7679
7679
 
@@ -7773,7 +7773,9 @@ async function getRecordDetailRelatedListSchema(objectName, recordId, relatedObj
7773
7773
  const details = union(mainObjectUiSchema.details,mainObjectUiSchema.lookup_details) || [];
7774
7774
  for (const detail of details) {
7775
7775
  const arr = detail.split(".");
7776
- mainRelated[arr[0]] = arr[1];
7776
+ if(!has(mainRelated,arr[0])){
7777
+ mainRelated[arr[0]] = arr[1];
7778
+ }
7777
7779
  }
7778
7780
  }
7779
7781
  }