mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-15 00:11:15 +03:00
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:
parent
778d55135e
commit
a0f499d7ff
@ -649,8 +649,11 @@ const mergeSectionConfig = (
|
||||
return srcValue ?? objValue;
|
||||
}
|
||||
|
||||
if (key === "uiSchema" && srcValue !== undefined) {
|
||||
return srcValue;
|
||||
if (key === "uiSchema") {
|
||||
if (objValue && srcValue) {
|
||||
return merge({}, objValue, srcValue);
|
||||
}
|
||||
return srcValue ?? objValue;
|
||||
}
|
||||
|
||||
return undefined;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user