From 67be834a616e1407e877c6ee0462816c0bb7ecab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dafydd=20Ll=C5=B7r=20Pearson?= Date: Wed, 18 Oct 2023 08:04:13 +0100 Subject: [PATCH] fix: Give FormWrapper unique id, tighten Option type --- .../src/@planx/components/Checklist/Public.tsx | 8 ++++---- editor.planx.uk/src/@planx/components/shared/index.ts | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/editor.planx.uk/src/@planx/components/Checklist/Public.tsx b/editor.planx.uk/src/@planx/components/Checklist/Public.tsx index e583700818..f944eac47d 100644 --- a/editor.planx.uk/src/@planx/components/Checklist/Public.tsx +++ b/editor.planx.uk/src/@planx/components/Checklist/Public.tsx @@ -41,7 +41,7 @@ function getFlatOptions({ return options; } if (groupedOptions) { - return groupedOptions.flatMap((group: any) => group.children); + return groupedOptions.flatMap((group) => group.children); } return []; } @@ -142,9 +142,9 @@ const ChecklistComponent: React.FC = ({ {options ? ( - options.map((option: any) => + options.map((option) => layout === ChecklistLayout.Basic ? ( - + = ({ isExpanded ? "-expanded" : "" }`} > - {group.children.map((option: any) => ( + {group.children.map((option) => (