Skip to content

Commit

Permalink
Fix disabling !struct (#1178)
Browse files Browse the repository at this point in the history
* Fix disabling !struct

* chlog
  • Loading branch information
ukrbublik authored Jan 14, 2025
1 parent 1951bc9 commit 93810f6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Changelog
- 6.6.9
- Force autocomplete widget when `fieldSettings.allowCustomValues` is true (MIU/antd) (PR #1176) (issue #1150)
- Fix disabling !struct (PR #1178) (issue #1121)
- 6.6.8
- Support safe navigation operator in SpEL operators/functions (PR #1172) (issue #1010)
- SpEL: backward compatibility for import of `CollectionUtils.containsAny` (PR #1174) (issue #1007)
Expand Down
6 changes: 4 additions & 2 deletions packages/core/modules/utils/configExtend.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,10 @@ function extendFieldConfig(fieldConfig, config, path = [], isFuncArg = false, is
}

if (!typeConfig) {
// console.warn(`No type config for ${type}`);
fieldConfig.disabled = true;
if (fieldConfig.type !== "!struct") {
// console.warn(`No type config for ${type}`);
fieldConfig.disabled = true;
}
return;
}

Expand Down

0 comments on commit 93810f6

Please sign in to comment.