refreshes pending Job when expiry date is extended

This commit was merged in pull request #373.
This commit is contained in:
victorAnumudu
2023-08-01 18:42:18 +01:00
parent 0f44616767
commit 10abf35d4f
2 changed files with 6 additions and 7 deletions
+1 -2
View File
@@ -7,12 +7,11 @@ export default function MyPendingJobsPage() {
let { commonHeadBanner } = useSelector((state) => state.commonHeadBanner);
let { pendingListTable } = useSelector((state) => state.tableReload);
console.log('TESTING', pendingListTable)
const [MyJobList, setMyJobList] = useState({loading: true, data: []});
const api = new usersService();
const getMyJobList = async () => {
setMyJobList({loading: true, data: []});
try {
const res = await api.getMyPendingJobList();
setMyJobList({loading: false, data: res.data});