Skip to content

Commit

Permalink
Fixes type warning
Browse files Browse the repository at this point in the history
  • Loading branch information
latin-panda committed Jan 22, 2025
1 parent 9599af1 commit 8b166e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/xforms-engine/src/instance/RankControl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export class RankControl
}

setValues(valuesInOrder: readonly string[]): Root {
const sourceValues = this.mapOptionsByValue().keys();
const sourceValues: string[] = this.mapOptionsByValue().keys();
const hasAllValues = !sourceValues.some((sourceValue) => valuesInOrder.includes(sourceValue));
if (hasAllValues) {
throw new RankFunctionalityError('There are missing options. Rank should have all options');
Expand Down

0 comments on commit 8b166e3

Please sign in to comment.