Skip to content

Commit

Permalink
the whitespace is telling
Browse files Browse the repository at this point in the history
  • Loading branch information
brontolosone committed Dec 18, 2024
1 parent 954f9e9 commit 761d7da
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/xpath/src/functions/xforms/node-set.ts
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,9 @@ export const randomize = new NodeSetFunction(

const nodeResults = Array.from(results.values());
const nodes = nodeResults.map(({ value }) => value);

if (seedExpression === undefined) return seededRandomize(nodes);

const seed = seedExpression.evaluate(context);
const asNumber = seed.toNumber(); // TODO: There are some peculiarities to address: https://github.com/getodk/web-forms/issues/240
let finalSeed: number | bigint | undefined;
Expand Down

0 comments on commit 761d7da

Please sign in to comment.