From 250809a559c98b021a386ae8a9a94f9f1b4f0343 Mon Sep 17 00:00:00 2001 From: Danny Wahl Date: Fri, 1 Mar 2024 09:31:47 -0700 Subject: [PATCH] update Ordered List & better keys values --- isp-site/src/components/mdtoui.jsx | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/isp-site/src/components/mdtoui.jsx b/isp-site/src/components/mdtoui.jsx index 433d0995..e0fbf36a 100644 --- a/isp-site/src/components/mdtoui.jsx +++ b/isp-site/src/components/mdtoui.jsx @@ -114,11 +114,7 @@ const mdtoui = { if (tasklist && children) { let checked; return ( - + {Children.map(children, (child) => { if (child?.props?.type === "checkbox") checked = child?.props?.checked ?? false; @@ -141,7 +137,7 @@ const mdtoui = { ); } - return ; + return ; })} ); @@ -151,8 +147,8 @@ const mdtoui = { const { children, ...fProps } = props; return ( - {children.map((node, i) => { - return ; + {Children.map(children, (child) => { + return ; })} ); @@ -189,8 +185,8 @@ const mdtoui = { {Children.map(children, (child) => { return ( );