diff --git a/src/Pages/Tagging.tsx b/src/Pages/Tagging.tsx index a23cc8d..b8aa345 100644 --- a/src/Pages/Tagging.tsx +++ b/src/Pages/Tagging.tsx @@ -32,7 +32,9 @@ export default function Tagging() { const navigate = useNavigate(); const { data: tagsData, refetch } = useApiRequest({ - api: `/tag/web/api/v1/tag_batch/?species_code=${selectedSpecie[0]}`, + api: `/tag/web/api/v1/tag_batch/?species_code=${ + selectedSpecie.length ? selectedSpecie[0] : "" + }`, method: "get", queryKey: ["tagsList", tableInfo, selectedSpecie], params: { ...tableInfo }, @@ -70,6 +72,8 @@ export default function Tagging() { : "نامشخص", item?.serial_from || "-", item?.serial_to || "-", + item?.total_distributed_tags || 0, + item?.total_remaining_tags || 0,