added pagination for market list

This commit was merged in pull request #670.
This commit is contained in:
victorAnumudu
2024-03-23 20:06:30 +01:00
parent e87cb95b43
commit 48a50fd47c
5 changed files with 24 additions and 7 deletions
+2 -1
View File
@@ -219,8 +219,9 @@ const AuthRoute = ({ redirectPath = "/login", children }) => {
const getMarketActiveJobList = async () => {
try {
const res = await apiCall.getActiveJobList();
dispatch(updateJobs(res.data));
dispatch(updateJobs({loading: false, ...res.data}));
} catch (error) {
dispatch(updateJobs({loading: false}));
console.log("Error getting mode");
}
};