mirror of
https://github.com/thepaperpilot/Planar-Pioneers.git
synced 2024-11-24 17:31:47 +00:00
Fixed typing issues with selected node
This commit is contained in:
parent
040fcfdf5f
commit
dc912ef54d
2 changed files with 2 additions and 2 deletions
2
src/typings/features/board.d.ts
vendored
2
src/typings/features/board.d.ts
vendored
|
@ -15,7 +15,7 @@ export interface BoardNode {
|
|||
|
||||
export interface BoardData {
|
||||
nodes: BoardNode[];
|
||||
selectedNode: string | null;
|
||||
selectedNode: number | null;
|
||||
selectedAction: string | null;
|
||||
}
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue