From dc912ef54d0c1c194d3755dbe315019b089791c1 Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Mon, 23 Aug 2021 23:55:43 -0500 Subject: [PATCH] Fixed typing issues with selected node --- src/typings/features/board.d.ts | 2 +- src/util/layers.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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,