We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3517dbb commit 26cc345Copy full SHA for 26cc345
1 file changed
src/apiCommands.ts
@@ -33,7 +33,7 @@ export default () => {
33
// and so on
34
operationsCache.set(type, { key: operationKey, data })
35
if (type === 'getNodePath') {
36
- operationsCache.set('getNodeAtPosition', { key: operationKey, data: data.then((path: any) => path[path.length - 1]) })
+ operationsCache.set('getNodeAtPosition', { key: operationKey, data: data.then((path: any) => path?.[path.length - 1]) })
37
}
38
39
return data
0 commit comments