From 5acc2da66d26958ea5e3312a2ed15781e22987fa Mon Sep 17 00:00:00 2001 From: Anders Weinstein Date: Tue, 26 Aug 2025 15:45:10 -0400 Subject: [PATCH] always set shuffle on ordering questions --- src/resources/formative.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/resources/formative.ts b/src/resources/formative.ts index 80eb195..62d12ce 100644 --- a/src/resources/formative.ts +++ b/src/resources/formative.ts @@ -297,7 +297,6 @@ function getHotspots(imageHotspot: any) { } function ordering(question: any) { - const shuffle = Common.getChild(question, 'ordering').shuffle; const transformationElement = Common.getChild(question, 'transformation'); const transformationsArray = transformationElement === undefined ? [] : [transformationElement]; @@ -309,7 +308,8 @@ function ordering(question: any) { version: 2, parts: [buildOrderingPart(question)], transformations: [ - ...(shuffle === 'true' ? [Common.shuffleTransformation()] : []), + // no shuffle attribute, just always set on this question type + Common.shuffleTransformation(), ...transformationsArray, ], previewText: '', @@ -764,7 +764,6 @@ export class Formative extends Resource { r.children[0].children, this.file ); - resolve(items); }); });