From deb650f22f82a36c1905729d0e531df4f0a3619c Mon Sep 17 00:00:00 2001 From: estifanos Date: Tue, 11 Aug 2026 10:35:49 +0000 Subject: [PATCH] fix: update DocumentSlots component to include optional mode and use requirement.id as key --- .../app/features/licensing/components/DocumentSlots.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/apps/portal/src/app/features/licensing/components/DocumentSlots.tsx b/apps/portal/src/app/features/licensing/components/DocumentSlots.tsx index c0e075d4e..e09c995bc 100644 --- a/apps/portal/src/app/features/licensing/components/DocumentSlots.tsx +++ b/apps/portal/src/app/features/licensing/components/DocumentSlots.tsx @@ -65,6 +65,7 @@ export function DocumentSlots({ const required = requirements.filter( (r) => r.mode === 'ALWAYS' || + r.mode === 'OPTIONAL' || (r.mode === 'CONDITIONAL' && conditionHolds(r.conditionExpression, formData)), ); @@ -99,7 +100,7 @@ export function DocumentSlots({ return ( )} + {requirement.mode === 'OPTIONAL' && ( + + optional + + )} {uploaded && !flagRemark && ( }> uploaded