Fixed typing issues with selected node

This commit is contained in:
thepaperpilot 2021-08-23 23:55:43 -05:00
parent 040fcfdf5f
commit dc912ef54d
2 changed files with 2 additions and 2 deletions

View file

@ -15,7 +15,7 @@ export interface BoardNode {
export interface BoardData { export interface BoardData {
nodes: BoardNode[]; nodes: BoardNode[];
selectedNode: string | null; selectedNode: number | null;
selectedAction: string | null; selectedAction: string | null;
} }

View file

@ -82,7 +82,7 @@ export function getStartingBoards(
const nodes = boards[curr].startNodes?.() || []; const nodes = boards[curr].startNodes?.() || [];
acc[curr] = { acc[curr] = {
nodes: nodes.map((node, index) => ({ nodes: nodes.map((node, index) => ({
id: index.toString(), id: index,
...node ...node
})), })),
selectedNode: null, selectedNode: null,