mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-11-29 08:47:08 +03:00
don't strip the fallback detect size when cloning
This commit is contained in:
@@ -672,14 +672,9 @@ export function buildClonedCameraPayloads({
|
||||
formData: sourceSectionValue as ConfigSectionData,
|
||||
},
|
||||
);
|
||||
// a fallback detect size would become an explicit value on the target
|
||||
const fallbackDetect =
|
||||
section === "detect" && sourceCfg.detect_resolution_source === "default"
|
||||
? ["width", "height"]
|
||||
: [];
|
||||
let pendingSectionValue: unknown = sanitizeSectionData(
|
||||
cloneDeep(sourceSectionValue) as ConfigSectionData,
|
||||
[...resolvedHiddenFields, ...fallbackDetect],
|
||||
resolvedHiddenFields,
|
||||
);
|
||||
|
||||
if (FILTER_SECTION_DEFS[section]) {
|
||||
|
||||
Reference in New Issue
Block a user