Skip to content

Commit

Permalink
Made it so expandSeedData will use the override id set within a seed …
Browse files Browse the repository at this point in the history
…if set.

Part of #2.
  • Loading branch information
jkomoros committed Jun 24, 2023
1 parent 48a5c4a commit abb20ff
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/seed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,11 @@ const expandSeedData = (idFromParent : SeedID, data : SeedData, result : Expande

throw new Error(`Nested seeds discovered in ${idFromParent}.${key} but they are not yet supported`);
}

const id = data.id !== undefined ? data.id : idFromParent;

//For now just add all seeds, an effective pass-through
result.seeds[idFromParent] = resultData;
result.seeds[id] = resultData;
};

export const expandSeedPacket = (packet : SeedPacket) : ExpandedSeedPacket => {
Expand Down

0 comments on commit abb20ff

Please sign in to comment.