diff --git a/packages/xforms-engine/src/instance/RankControl.ts b/packages/xforms-engine/src/instance/RankControl.ts index 759c7d8bd..48ae6ccc4 100644 --- a/packages/xforms-engine/src/instance/RankControl.ts +++ b/packages/xforms-engine/src/instance/RankControl.ts @@ -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'); diff --git a/packages/xforms-engine/src/lib/reactivity/createSelectItems.ts b/packages/xforms-engine/src/lib/reactivity/createSelectItems.ts index a0573bb54..fa55ecf85 100644 --- a/packages/xforms-engine/src/lib/reactivity/createSelectItems.ts +++ b/packages/xforms-engine/src/lib/reactivity/createSelectItems.ts @@ -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,