From bbc79f98c224e7aff4da057aaaaaf89be8152b75 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Wed, 6 May 2026 22:06:40 -0500 Subject: [PATCH] siimplify object filters handling live updating was getting very messy. users will just need to save once they enable a new object in order to see filters for that object --- web/src/components/config-form/sections/BaseSection.tsx | 8 +------- .../config-form/sections/section-special-cases.ts | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/web/src/components/config-form/sections/BaseSection.tsx b/web/src/components/config-form/sections/BaseSection.tsx index 588742ac55..6eb7640453 100644 --- a/web/src/components/config-form/sections/BaseSection.tsx +++ b/web/src/components/config-form/sections/BaseSection.tsx @@ -521,11 +521,7 @@ export function ConfigSection({ setPendingOverrides(undefined); return; } - const sanitizedData = synthesizeMissingObjectFilters( - sectionPath, - sanitizeSectionData(data as ConfigSectionData), - modifiedSchema ?? undefined, - ) as ConfigSectionData; + const sanitizedData = sanitizeSectionData(data as ConfigSectionData); const nextBaselineFormData = baselineSnapshot; const overrides = buildOverrides( sanitizedData, @@ -565,8 +561,6 @@ export function ConfigSection({ setPendingOverrides, setDirtyOverrides, baselineSnapshot, - sectionPath, - modifiedSchema, ], ); diff --git a/web/src/components/config-form/sections/section-special-cases.ts b/web/src/components/config-form/sections/section-special-cases.ts index df835c5718..2b71ea4a20 100644 --- a/web/src/components/config-form/sections/section-special-cases.ts +++ b/web/src/components/config-form/sections/section-special-cases.ts @@ -109,7 +109,7 @@ export function getEffectiveDefaultsForSection( * Add default filter entries for any label in `objects.track` that isn't * already in `objects.filters`, so each tracked label gets a collapsible. * The backend only auto-populates filters at config init, not after profile - * merges or live track edits. + * merges. */ export function synthesizeMissingObjectFilters( sectionPath: string,