fix section config uiSchema merge replacing base entries

mergeSectionConfig was replacing the entire base uiSchema when a
level override (global/camera) also defined one, causing base-level
ui:after/ui:before directives to be silently dropped. This broke
the SemanticSearchReindex button which was defined in base uiSchema.
This commit is contained in:
Josh Hawkins 2026-03-31 13:34:33 -05:00
parent 778d55135e
commit a0f499d7ff

View File

@ -649,8 +649,11 @@ const mergeSectionConfig = (
return srcValue ?? objValue; return srcValue ?? objValue;
} }
if (key === "uiSchema" && srcValue !== undefined) { if (key === "uiSchema") {
return srcValue; if (objValue && srcValue) {
return merge({}, objValue, srcValue);
}
return srcValue ?? objValue;
} }
return undefined; return undefined;