CEC-1965 Supplier update and approval (#162)
* CEC-1965 Supplier update and approval Fix calling connectedcars for no VINs Search sets table page to 0 * PR comments
This commit is contained in:
@@ -112,7 +112,7 @@ const MainForm = () => {
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [pageIndex, pageSize, token, orderBy, order, search]);
|
||||
|
||||
const handleChangePageIndex = (event, newIndex) => {
|
||||
const handleChangePageIndex = (_event, newIndex) => {
|
||||
setPageIndex(newIndex);
|
||||
};
|
||||
|
||||
@@ -122,6 +122,7 @@ const MainForm = () => {
|
||||
};
|
||||
|
||||
const handleSearch = (query) => {
|
||||
setPageIndex(0);
|
||||
setSearch(query);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user