Merge branch 'joblist-listing' of WrenchBoard/Users-Wrench into master
This commit is contained in:
@@ -104,7 +104,7 @@ export default function MyJobTable({ MyJobList, reloadJobList, className }) {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
const currentJobList = filterJobList();
|
const currentJobList = filterJobList()?.filter(item => item?.job_mode == 'GENERAL'); // Show only jobs with job mode of GENERAL
|
||||||
|
|
||||||
// Handling Filter Pagination
|
// Handling Filter Pagination
|
||||||
const filteredCurrentJobList = currentJobList?.slice(
|
const filteredCurrentJobList = currentJobList?.slice(
|
||||||
@@ -358,13 +358,14 @@ function myJobTableFeatures(
|
|||||||
{MyJobList?.data?.result_list?.length > 0 ? (
|
{MyJobList?.data?.result_list?.length > 0 ? (
|
||||||
filteredCurrentJobList.length > 0 ? (
|
filteredCurrentJobList.length > 0 ? (
|
||||||
filteredCurrentJobList.map((value, index) => (
|
filteredCurrentJobList.map((value, index) => (
|
||||||
<JobListItem
|
<JobListItem
|
||||||
key={index}
|
key={index}
|
||||||
index={index}
|
index={index}
|
||||||
value={value}
|
value={value}
|
||||||
image_server={MyJobList.data.session_image_server}
|
image_server={MyJobList.data.session_image_server}
|
||||||
/>
|
/>
|
||||||
))
|
)
|
||||||
|
)
|
||||||
) : (
|
) : (
|
||||||
<NoJobsRow text="No Jobs Available In This Category!" />
|
<NoJobsRow text="No Jobs Available In This Category!" />
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user