Fix booster not selecting portals

This commit is contained in:
thepaperpilot 2023-05-08 22:39:14 -05:00
parent de1f37d732
commit 20ae53458b

View file

@ -296,12 +296,12 @@ export function onDropPortal(node: BoardNode, otherNode: BoardNode) {
if (portals.includes(portal)) {
node.state = {
...(node.state as object),
tools: portals.filter(r => r !== portal)
portals: portals.filter(r => r !== portal)
};
} else {
node.state = {
...(node.state as object),
tools: [...portals, portal]
portals: [...portals, portal]
};
}
main.board.selectedNode.value = node;