From d52e8321402197111ec06ebdbbb0669594ec4435 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Wed, 4 Sep 2024 23:09:26 -0700 Subject: [PATCH] Fix depth --- src-ui/src/app/data/custom-field-query.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src-ui/src/app/data/custom-field-query.ts b/src-ui/src/app/data/custom-field-query.ts index 784704356..7e273a1bf 100644 --- a/src-ui/src/app/data/custom-field-query.ts +++ b/src-ui/src/app/data/custom-field-query.ts @@ -246,12 +246,14 @@ export class CustomFieldQueryExpression extends CustomFieldQueryElement { this._value = values.map((value) => { if (value.length === 3) { const atom = new CustomFieldQueryAtom(value) + atom.depth = this.depth + 1 atom.changed.subscribe(() => { this.changed.next(this) }) return atom } else { const expression = new CustomFieldQueryExpression(value) + expression.depth = this.depth + 1 expression.changed.subscribe(() => { this.changed.next(this) })