From dc5a30b1616d31d26b5c91a35a058209192136ca Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Mon, 2 Sep 2024 09:26:09 -0700 Subject: [PATCH] Fix subquery change propagation --- .../custom-fields-query-dropdown.component.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src-ui/src/app/components/common/custom-fields-query-dropdown/custom-fields-query-dropdown.component.ts b/src-ui/src/app/components/common/custom-fields-query-dropdown/custom-fields-query-dropdown.component.ts index f4b4c9fbe..aec9048df 100644 --- a/src-ui/src/app/components/common/custom-fields-query-dropdown/custom-fields-query-dropdown.component.ts +++ b/src-ui/src/app/components/common/custom-fields-query-dropdown/custom-fields-query-dropdown.component.ts @@ -82,7 +82,13 @@ export class CustomFieldQueryExpression extends CustomFieldQueryComponent { if (!values) { this._value = [] } else if (values?.length > 0 && values[0] instanceof Array) { - this._value = values.map((value) => new CustomFieldQueryAtom(value)) + this._value = values.map((value) => { + const atom = new CustomFieldQueryAtom(value) + atom.changed.subscribe(() => { + this.changed.next(this) + }) + return atom + }) } else { this._value = new CustomFieldQueryExpression(values as any) }