don't strip the fallback detect size when cloning

This commit is contained in:
Josh Hawkins
2026-11-28 18:30:43 -06:00
parent 63807d753c
commit 140680215b
2 changed files with 1 additions and 54 deletions
+1 -6
View File
@@ -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]) {