diff --git a/src/typings/features/board.d.ts b/src/typings/features/board.d.ts index f5d716c..234965f 100644 --- a/src/typings/features/board.d.ts +++ b/src/typings/features/board.d.ts @@ -15,7 +15,7 @@ export interface BoardNode { export interface BoardData { nodes: BoardNode[]; - selectedNode: string | null; + selectedNode: number | null; selectedAction: string | null; } diff --git a/src/util/layers.ts b/src/util/layers.ts index ff4d011..e790ee5 100644 --- a/src/util/layers.ts +++ b/src/util/layers.ts @@ -82,7 +82,7 @@ export function getStartingBoards( const nodes = boards[curr].startNodes?.() || []; acc[curr] = { nodes: nodes.map((node, index) => ({ - id: index.toString(), + id: index, ...node })), selectedNode: null,