diff --git a/src/Pages/Tagging.tsx b/src/Pages/Tagging.tsx
index 009997b..4458d2a 100644
--- a/src/Pages/Tagging.tsx
+++ b/src/Pages/Tagging.tsx
@@ -77,6 +77,22 @@ export default function Tagging() {
}}
/>
+
+
+
{
const { profile } = useUserProfileStore();
- console.log(item);
-
const {
control,
handleSubmit,
@@ -58,13 +56,15 @@ export const SubmitNewTags = ({ getData, item }: SubmitNewTagsTypeProps) => {
defaultValues: {
country_code: 364,
static_code: 0,
- species_code: 1,
+ serial_start: item?.serial_from || "",
+ serial_end: item?.serial_to || "",
+ species_code: item?.species_code || 1,
},
});
const mutation = useApiMutation({
- api: "/tag/web/api/v1/tag/",
- method: "post",
+ api: `/tag/web/api/v1/tag/${item?.id ? item.id : ""}`,
+ method: item ? "put" : "post",
});
const onSubmit = async (data: FormValues) => {