From f09a3b47485a46c9cdf4a160b44bdcc4cd58a1bf Mon Sep 17 00:00:00 2001 From: mgtennant <100305096+mgtennant@users.noreply.github.com> Date: Tue, 8 Oct 2024 09:04:26 -0700 Subject: [PATCH 1/2] add list to global provision view --- .../manage-doc-types/GlobalProvisionModal.tsx | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/frontend/src/app/components/modal/manage-doc-types/GlobalProvisionModal.tsx b/frontend/src/app/components/modal/manage-doc-types/GlobalProvisionModal.tsx index 42d42e0a..b38554da 100644 --- a/frontend/src/app/components/modal/manage-doc-types/GlobalProvisionModal.tsx +++ b/frontend/src/app/components/modal/manage-doc-types/GlobalProvisionModal.tsx @@ -32,6 +32,7 @@ const GlobalProvisionModal: FC = ({ provision, show, meta: { customCss: { width: '40%' } }, }), ]; + console.log(provision); return ( @@ -51,6 +52,21 @@ const GlobalProvisionModal: FC = ({ provision, show, value={provision?.free_text} style={{ minHeight: '100px' }} /> + + {/** map list items here, the object is a string list accessible with: provision?.list */} + {provision && provision.list_items && provision.list_items.length > 0 ? ( + provision?.list_items.map((item, index) => ( + + )) + ) : ( + + )}