Skip to content

Commit

Permalink
Merge pull request #1385 from ita-social-projects/feature/issue-1692
Browse files Browse the repository at this point in the history
feature/issue-1692
  • Loading branch information
sashapanasiuk5 authored Sep 18, 2024
2 parents 56746ef + ed5688b commit c4cf01c
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,14 @@ const StreetcodesTable = () => {
const [requestGetAll, setRequestGetAll] = useState<GetAllStreetcodesRequest>(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,
Expand Down

0 comments on commit c4cf01c

Please sign in to comment.