From 63ef5d8a494b9f504b4d420be56f1f07135820ff Mon Sep 17 00:00:00 2001 From: estifanos Date: Tue, 11 Aug 2026 10:22:47 +0000 Subject: [PATCH] fix: update sorting of required documents in DocumentSlots component. Revert --- .../licensing/components/DocumentSlots.tsx | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/apps/portal/src/app/features/licensing/components/DocumentSlots.tsx b/apps/portal/src/app/features/licensing/components/DocumentSlots.tsx index ed513ca4a..c0e075d4e 100644 --- a/apps/portal/src/app/features/licensing/components/DocumentSlots.tsx +++ b/apps/portal/src/app/features/licensing/components/DocumentSlots.tsx @@ -62,13 +62,11 @@ export function DocumentSlots({ const [error, setError] = useState(null); const resetRefs = useRef void>>({}); - const required = requirements - .filter( - (r) => - r.mode === 'ALWAYS' || - (r.mode === 'CONDITIONAL' && conditionHolds(r.conditionExpression, formData)), - ) - .sort((a, b) => (a.sortOrder ?? 0) - (b.sortOrder ?? 0)); + const required = requirements.filter( + (r) => + r.mode === 'ALWAYS' || + (r.mode === 'CONDITIONAL' && conditionHolds(r.conditionExpression, formData)), + ); async function handle(documentKey: string, file: File | null) { if (!file) return; @@ -101,7 +99,7 @@ export function DocumentSlots({ return (