fix nullptr for non-focused node

This commit is contained in:
sawka
2024-08-27 13:45:05 -07:00
parent c892c39a73
commit 730c0b1eea
+3
View File
@@ -267,6 +267,9 @@ export class LayoutModel {
this.focusedNode = atom((get) => {
const treeState = get(this.treeStateAtom);
if (treeState.focusedNodeId == null) {
return null;
}
return findNode(treeState.rootNode, treeState.focusedNodeId);
});
this.focusedNodeIdStack = [];