Skip to content

Commit

Permalink
fix: remove params when reset data
Browse files Browse the repository at this point in the history
  • Loading branch information
DinhTran committed Mar 14, 2024
1 parent 6db1666 commit 1f2ad13
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/commons/CustomFilter/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { useTranslation } from "react-i18next";
import { BsFillCheckCircleFill } from "react-icons/bs";
import { useHistory } from "react-router-dom";
import { stringify } from "qs";
import { pick } from "lodash";

import { useScreen } from "src/commons/hooks/useScreen";
import {
Expand Down Expand Up @@ -169,6 +170,7 @@ const CustomFilter: React.FC<Props> = (props) => {
}
setOpen(false);
setSearch("");
history.replace({ search: stringify(pick({ page, size }, ["page", "size", "retired"])) });
};

const filterOptions = options.filter((item) => !excludes.includes(item.value));
Expand Down

0 comments on commit 1f2ad13

Please sign in to comment.