check if it's the last item (#31054)
fixes: #31040 Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
This commit is contained in:
parent
1a8075d62a
commit
9f0fc3d469
1 changed files with 3 additions and 1 deletions
|
@ -100,7 +100,9 @@ export class ExecutionList {
|
||||||
currentIndex += ex.executionList.length;
|
currentIndex += ex.executionList.length;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return undefined;
|
return currentIndex === index
|
||||||
|
? this.expandableList[this.expandableList.length - 1]
|
||||||
|
: undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
#getParentNodes(level: number, index: number) {
|
#getParentNodes(level: number, index: number) {
|
||||||
|
|
Loading…
Reference in a new issue