diff --git a/apps/web/api/ius/types.ts b/apps/web/api/ius/types.ts index ccc1a59..c7420c0 100644 --- a/apps/web/api/ius/types.ts +++ b/apps/web/api/ius/types.ts @@ -9,7 +9,7 @@ export type MetaObject = { visible: boolean; }; -type Value = string | number | string[] | undefined; +type Value = any; export type ResponseGetData = Record; export type ResponseMetaData = Record; diff --git a/apps/web/components/Form/Elements.tsx b/apps/web/components/Form/Elements.tsx index 08b7a37..2d482c1 100644 --- a/apps/web/components/Form/Elements.tsx +++ b/apps/web/components/Form/Elements.tsx @@ -25,13 +25,17 @@ export function Elements({ data, metaData }: Props) { return ( { - setValue({ name, value: e.target.value }); + setValue({ + name, + value: fieldType === 'CHECKBOX' ? e.target.checked : e.target.value, + }); }} {...props} />