mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-06-27 23:01:54 +03:00
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
This commit is contained in:
parent
feff214d73
commit
bbc79f98c2
@ -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,
|
||||
],
|
||||
);
|
||||
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user