forked from profectus/Profectus
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 {
|
export interface BoardData {
|
||||||
nodes: BoardNode[];
|
nodes: BoardNode[];
|
||||||
selectedNode: string | null;
|
selectedNode: number | null;
|
||||||
selectedAction: string | null;
|
selectedAction: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue