Skip to content

Commit 93810f6

Browse files
authored
Fix disabling !struct (#1178)
* Fix disabling !struct * chlog
1 parent 1951bc9 commit 93810f6

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Changelog
22
- 6.6.9
33
- Force autocomplete widget when `fieldSettings.allowCustomValues` is true (MIU/antd) (PR #1176) (issue #1150)
4+
- Fix disabling !struct (PR #1178) (issue #1121)
45
- 6.6.8
56
- Support safe navigation operator in SpEL operators/functions (PR #1172) (issue #1010)
67
- SpEL: backward compatibility for import of `CollectionUtils.containsAny` (PR #1174) (issue #1007)

packages/core/modules/utils/configExtend.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,10 @@ function extendFieldConfig(fieldConfig, config, path = [], isFuncArg = false, is
223223
}
224224

225225
if (!typeConfig) {
226-
// console.warn(`No type config for ${type}`);
227-
fieldConfig.disabled = true;
226+
if (fieldConfig.type !== "!struct") {
227+
// console.warn(`No type config for ${type}`);
228+
fieldConfig.disabled = true;
229+
}
228230
return;
229231
}
230232

0 commit comments

Comments
 (0)