Commit 87b3c5b2 authored by Nitin Jadhav's avatar Nitin Jadhav
Browse files

Merge branch 'list-duplication-fix' into 'master'

Changed id to field_jobs_reference_number for list iteration

See merge request !84
parents 735b6bc8 a59562d6
Pipeline #244762 canceled with stages
in 1 minute and 51 seconds
......@@ -11,7 +11,11 @@ export function JobList({ jobs, loading, resetFilters, isIframe = false }) {
return (
<div className="vf-content">
{jobs.map((job) => (
<JobList.JobListItem key={job.id} job={job} isIframe={isIframe} />
<JobList.JobListItem
key={job.field_jobs_reference_number}
job={job}
isIframe={isIframe}
/>
))}
{!jobs.length && (
<p>
......
......@@ -175,6 +175,7 @@ export function extendJobsObjects(jobs = []) {
$field_jobs_expiration: parseDateFromTimeHtml(
job.field_jobs_expiration
),
$uid: Math.random().toString(),
};
} catch (e) {
console.error("error: ", job);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment