Fixed board.selectedAction setter not working

This commit is contained in:
thepaperpilot 2023-04-23 16:44:39 -05:00
parent 155c4a2986
commit 7a062bb360

View file

@ -388,21 +388,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);
if (board.links) {
processComputable(board as T, "links");