From 4980074d26bf06d68afb8e2bda1d804a5925bd28 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 4258345..323b7d2 100644 --- a/src/features/boards/board.ts +++ b/src/features/boards/board.ts @@ -385,21 +385,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");