CEC-5189: expand dependency array (#460)

* CEC-5189: expand dependency array

* add missing deps

* remove some deps
This commit is contained in:
Tristan Timblin
2023-10-04 15:55:47 -07:00
committed by GitHub
parent eae44c9249
commit 54e7560a26
2 changed files with 4 additions and 2 deletions

View File

@@ -55,7 +55,6 @@ export default function useQuery() {
}
});
setPayload({
search,
vins: vins.join(","),

View File

@@ -125,7 +125,10 @@ const CarSelectionTable = (props) => {
}
})();
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [pageIndex, pageSize, orderBy, order, token]);
}, [
pageIndex, pageSize, orderBy, order, token,
search.search, search.vins, search.online, search.online_hmi
]);
useEffect(() => {
setPageIndex(0);