diff --git a/actions-languageservice/src/utils/find-token.ts b/actions-languageservice/src/utils/find-token.ts index fc48b67..09c4d1b 100644 --- a/actions-languageservice/src/utils/find-token.ts +++ b/actions-languageservice/src/utils/find-token.ts @@ -128,7 +128,7 @@ export function findToken(pos: Position, root?: TemplateToken): TokenResult { token: null, parent: lastMatching?.token ?? null, keyToken: null, - path: lastMatching?.token ? [...(lastMatching?.path || []), lastMatching?.token] : [] + path: lastMatching?.token ? [...lastMatching.path, lastMatching.token] : [] }; }