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:
Erik Jan de Wit 2024-07-05 13:50:19 +02:00 committed by GitHub
parent 1a8075d62a
commit 9f0fc3d469
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) {