login
This commit is contained in:
@@ -99,7 +99,7 @@ const ProductCategory: FC = () => {
|
||||
items={data?.data?.map((item) => {
|
||||
return {
|
||||
label: item.title,
|
||||
value: item.id
|
||||
value: item.id + ''
|
||||
}
|
||||
}) || []}
|
||||
onChange={formik.handleChange}
|
||||
|
||||
@@ -68,7 +68,7 @@ const CategoryList: FC = () => {
|
||||
/>
|
||||
</Link>
|
||||
<TrashWithConfrim
|
||||
onDelete={() => handleDelete(item.id)}
|
||||
onDelete={() => handleDelete(item.id + '')}
|
||||
isloading={isPending}
|
||||
/>
|
||||
|
||||
|
||||
@@ -118,7 +118,7 @@ const UpdateCategory: FC = () => {
|
||||
items={data?.data?.map((item) => {
|
||||
return {
|
||||
label: item.title,
|
||||
value: item.id
|
||||
value: item.id + ''
|
||||
}
|
||||
}) || []}
|
||||
onChange={formik.handleChange}
|
||||
|
||||
@@ -18,7 +18,7 @@ const CategoriesSelect: FC<Props> = (props) => {
|
||||
items={categories?.data?.map((item) => {
|
||||
return {
|
||||
label: item.title,
|
||||
value: item.id
|
||||
value: item.id + ''
|
||||
}
|
||||
}) || []}
|
||||
{...props}
|
||||
|
||||
Reference in New Issue
Block a user