diff --git a/src/features/boards/board.ts b/src/features/boards/board.ts index 8d4545e..4763993 100644 --- a/src/features/boards/board.ts +++ b/src/features/boards/board.ts @@ -211,7 +211,10 @@ export function createBoard( board[Component] = BoardComponent; board.state = persistent({ - nodes: [], + nodes: board.startNodes().map((n, i) => { + (n as BoardNode).id = i; + return n as BoardNode; + }), selectedNode: null, selectedAction: null });