diff --git a/apps/web/Components/Calculation/Form/index.jsx b/apps/web/Components/Calculation/Form/index.jsx index 5448eee..b9a85f7 100644 --- a/apps/web/Components/Calculation/Form/index.jsx +++ b/apps/web/Components/Calculation/Form/index.jsx @@ -45,19 +45,21 @@ const ComponentWrapper = styled.div` `; function Form({ prune }) { + const items = formTabs + .filter((tab) => !prune?.includes(tab.id)) + .map(({ id, title, Component }) => ({ + key: id, + label: title, + children: ( + + + + ), + })); + return ( - - {formTabs - .filter((tab) => !prune?.includes(tab.id)) - .map(({ id, title, Component }) => ( - - - - - - ))} - + ); }