mirror of
https://github.com/wavetermdev/backup.git
synced 2026-08-05 13:57:07 -07:00
fix nullptr for non-focused node
This commit is contained in:
@@ -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 = [];
|
||||
|
||||
Reference in New Issue
Block a user