From a1393a26d7a31016b40e33947c3120c5416805a0 Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Sun, 14 May 2023 14:08:37 -0500 Subject: [PATCH] Fix error when deleting powered portals --- src/data/nodeTypes.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/data/nodeTypes.tsx b/src/data/nodeTypes.tsx index fa32502..450d7b3 100644 --- a/src/data/nodeTypes.tsx +++ b/src/data/nodeTypes.tsx @@ -978,6 +978,8 @@ export const trashCan = { ) }; } + // Manually set player.tabs because the watcher won't take place until next render + player.tabs = player.tabs.filter(s => s !== portal); }, draggable: true } as NodeTypeOptions;