Fix subquery change propagation
This commit is contained in:
parent
1ff187b15f
commit
dc5a30b161
@ -82,7 +82,13 @@ export class CustomFieldQueryExpression extends CustomFieldQueryComponent {
|
|||||||
if (!values) {
|
if (!values) {
|
||||||
this._value = []
|
this._value = []
|
||||||
} else if (values?.length > 0 && values[0] instanceof Array) {
|
} 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 {
|
} else {
|
||||||
this._value = new CustomFieldQueryExpression(values as any)
|
this._value = new CustomFieldQueryExpression(values as any)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user