diff --git a/webui/react/src/components/FilterForm/components/FilterFormStore.ts b/webui/react/src/components/FilterForm/components/FilterFormStore.ts index d997059c855..880c1421701 100644 --- a/webui/react/src/components/FilterForm/components/FilterFormStore.ts +++ b/webui/react/src/components/FilterForm/components/FilterFormStore.ts @@ -242,8 +242,9 @@ export class FilterFormStore { col: Pick, ): void { return this.#updateField(id, (form) => { - if (form.columnName === col.column) { - if (form.type === col.type && form.location === col.location) return form; + const isSameColumn = form.columnName === col.column && form.type === col.type; + if (isSameColumn && form.location === col.location) { + return form; } return { ...form,