diff --git a/src/features/boards/board.ts b/src/features/boards/board.ts index 322037b..5c815b3 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 });