Skip to content

Commit

Permalink
Fixes import and data type
Browse files Browse the repository at this point in the history
  • Loading branch information
latin-panda committed Jan 23, 2025
1 parent d127f11 commit 5f39d71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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 @@ -132,7 +132,7 @@ export class RankControl
}

setValues(valuesInOrder: readonly string[]): Root {
const sourceValues: string[] = this.mapOptionsByValue().keys();
const sourceValues: string[] = Array.from(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.', 'Rank Control');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type { EvaluationContext } from '../../instance/internal-api/EvaluationCo
import type { SelectControl } from '../../instance/SelectControl.ts';
import type { ItemDefinition } from '../../parse/body/control/ItemDefinition.ts';
import { createTextRange } from './text/createTextRange.ts';
import type { SourceValueItem, createItemset, derivedItemLabel } from './createBaseItemset.ts';
import { type SourceValueItem, createItemset, derivedItemLabel } from './createBaseItemset.ts';

const createSelectItemLabel = (
context: EvaluationContext,
Expand Down

0 comments on commit 5f39d71

Please sign in to comment.