mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-22 16:48:23 +01:00
fix addl props nullref
This commit is contained in:
parent
ae7d85630b
commit
7a1a3a2bea
@ -387,6 +387,8 @@ export class LayoutModel {
|
||||
if (!node.children?.length) {
|
||||
// console.log("adding node to leafs", node);
|
||||
leafs.push(node);
|
||||
const addlProps = additionalPropsMap[node.id];
|
||||
if (addlProps) {
|
||||
if (this.treeState.magnifiedNodeId === node.id) {
|
||||
const boundingRect = getBoundingRect();
|
||||
const transform = setTransform(
|
||||
@ -398,9 +400,10 @@ export class LayoutModel {
|
||||
},
|
||||
true
|
||||
);
|
||||
additionalPropsMap[node.id].transform = transform;
|
||||
addlProps.transform = transform;
|
||||
}
|
||||
addlProps.isLastMagnifiedNode = this.lastMagnifiedNodeId === node.id;
|
||||
}
|
||||
additionalPropsMap[node.id].isLastMagnifiedNode = this.lastMagnifiedNodeId === node.id;
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user