Skip to content

Commit

Permalink
Remove pagination change in useEffect
Browse files Browse the repository at this point in the history
  • Loading branch information
muditmahajan committed Apr 18, 2024
1 parent deddf3c commit e70d8b7
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/ui/app/influencer/profile/[id]/_services/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const Services = ({
const getServices = async () => {
try {
setLoading(true);
const { message, data, isSuccess, errors } = await getService(
const { message, data, isSuccess } = await getService(
"packages/service",
{
page_number: pagination.current_page_number,
Expand Down Expand Up @@ -120,12 +120,6 @@ const Services = ({
useEffect(() => {
if (id && loggedInUser && loggedInUser?.id && loggedInUser?.id === id) {
setType(null);
setPagination({
total_data_count: 0,
total_page_count: 0,
current_page_number: 1,
current_page_size: 8,
});
}
}, [loggedInUser, id]);

Expand Down

0 comments on commit e70d8b7

Please sign in to comment.