@steedos-widgets/sortable 6.3.0-beta.15 → 6.3.0-beta.16

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.
@@ -59934,8 +59934,8 @@ async function lookupToAmisPicker(field, readonly, ctx){
59934
59934
  const isAllowCreate = refObjectConfig.permissions.allowCreate;
59935
59935
  const isCreate = lodash.exports.isBoolean(field.create) ? field.create : true;
59936
59936
  // lookup字段配置过滤条件就强制不显示新建按钮
59937
- let isHasFilters = (field.filters || field.filtersFunction || field._filtersFunction) ? true : false;
59938
- if (isAllowCreate && isCreate && !isHasFilters) {
59937
+ let hasFilters = !lodash.exports.isEmpty(field.filters) || !!field.filtersFunction || !!field._filtersFunction;
59938
+ if (isAllowCreate && isCreate && !hasFilters) {
59939
59939
  const new_button = await getSchema$5(refObjectConfig, { appId: ctx.appId, objectName: refObjectConfig.name, formFactor: ctx.formFactor });
59940
59940
  new_button.align = "right";
59941
59941
  // 保持快速搜索放在最左侧,新建按钮往里插,而不是push到最后