diff --git a/src/features/AdminPage/StreetcodesTable/StreetcodesTable.component.tsx b/src/features/AdminPage/StreetcodesTable/StreetcodesTable.component.tsx index 35e9b57a2..ebbb21686 100644 --- a/src/features/AdminPage/StreetcodesTable/StreetcodesTable.component.tsx +++ b/src/features/AdminPage/StreetcodesTable/StreetcodesTable.component.tsx @@ -56,8 +56,14 @@ const StreetcodesTable = () => { const [requestGetAll, setRequestGetAll] = useState(requestDefault); const setRequest = () => { + let page = pageRequest; + if(requestGetAll.Title !== titleRequest || requestGetAll.Filter !== statusRequest) { + setPageRequest(1); + setCurrentPages(1); + page = 1; + } setRequestGetAll({ - Page: pageRequest, + Page: page, Amount: amountRequest, Title: titleRequest === '' ? null : titleRequest, Sort: null,