Actually set filter back to undefined (#20624)
Some checks are pending
CI / AMD64 Build (push) Waiting to run
CI / ARM Build (push) Waiting to run
CI / Jetson Jetpack 6 (push) Waiting to run
CI / AMD64 Extra Build (push) Blocked by required conditions
CI / ARM Extra Build (push) Blocked by required conditions
CI / Synaptics Build (push) Blocked by required conditions
CI / Assemble and push default build (push) Blocked by required conditions

This commit is contained in:
Nicolas Mowen 2025-10-22 17:40:39 -06:00 committed by GitHub
parent b38f830b3b
commit 0d5cfa2e38
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -495,8 +495,7 @@ export function GeneralFilterContent({
checked={filter.labels === undefined}
onCheckedChange={(isChecked) => {
if (isChecked) {
const { labels: _labels, ...rest } = filter;
onUpdateFilter(rest);
onUpdateFilter({ ...filter, labels: undefined });
}
}}
/>
@ -542,8 +541,7 @@ export function GeneralFilterContent({
checked={filter.zones === undefined}
onCheckedChange={(isChecked) => {
if (isChecked) {
const { zones: _zones, ...rest } = filter;
onUpdateFilter(rest);
onUpdateFilter({ ...filter, zones: undefined });
}
}}
/>