From 7a062bb3603a3e6a36149210bfc5210b5a3eefd4 Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Sun, 23 Apr 2023 16:44:39 -0500 Subject: [PATCH] Fixed board.selectedAction setter not working --- src/features/boards/board.ts | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/features/boards/board.ts b/src/features/boards/board.ts index c639bea..6bff7ad 100644 --- a/src/features/boards/board.ts +++ b/src/features/boards/board.ts @@ -388,21 +388,6 @@ export function createBoard( } } }); - board.selectedAction = computed(() => { - const selectedNode = processedBoard.selectedNode.value; - if (selectedNode == null) { - return null; - } - const type = processedBoard.types[selectedNode.type]; - if (type.actions == null) { - return null; - } - return ( - type.actions.find( - action => action.id === unref(processedBoard.state).selectedAction - ) || null - ); - }); board.mousePosition = ref(null); if (board.links) { processComputable(board as T, "links");