diff --git a/radlab-ui/webapp/src/components/forms/fields/ListField.tsx b/radlab-ui/webapp/src/components/forms/fields/ListField.tsx index 62abe970..1bbe8c70 100644 --- a/radlab-ui/webapp/src/components/forms/fields/ListField.tsx +++ b/radlab-ui/webapp/src/components/forms/fields/ListField.tsx @@ -49,8 +49,13 @@ const ListField: React.FC = ({ variable }) => { return (
{values[variable.name].map((setvalue: string, index: number) => ( -
- {setvalue} +
+ + {setvalue} + remove(index)} className="h-4 w-4 cursor-pointer" diff --git a/radlab-ui/webapp/src/components/forms/fields/MapField.tsx b/radlab-ui/webapp/src/components/forms/fields/MapField.tsx index 2b09e2b0..f28e3a31 100644 --- a/radlab-ui/webapp/src/components/forms/fields/MapField.tsx +++ b/radlab-ui/webapp/src/components/forms/fields/MapField.tsx @@ -71,21 +71,22 @@ const MapField: React.FC = ({ variable, validate }) => { } return (
- {Object.keys(values[variable.name]).map( - (map_data: string, index: number) => ( -
- - {map_data} = {values[variable.name][map_data]} - - -
- ), - )} + {Object.keys(values[variable.name]).map((map_data: string) => ( +
+ + {map_data} = {values[variable.name][map_data]} + + +
+ ))}
= ({ variable }) => { return (
{values[variable.name].map((setvalue: string, index: number) => ( -
- {setvalue} +
+ + {setvalue} + remove(index)} className="h-4 w-4 cursor-pointer"