Fixed board.selectedAction setter not working

This commit is contained in:
thepaperpilot 2023-04-23 16:44:39 -05:00
parent 066ef71395
commit 4980074d26

View file

@ -385,21 +385,6 @@ export function createBoard<T extends BoardOptions>(
} }
} }
}); });
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); board.mousePosition = ref(null);
if (board.links) { if (board.links) {
processComputable(board as T, "links"); processComputable(board as T, "links");