Skip to content

Commit

Permalink
bugfix for issue krayin#1207
Browse files Browse the repository at this point in the history
  • Loading branch information
ssh-keyz committed Oct 27, 2023
1 parent 319d500 commit 9bd5a9f
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,18 @@ class="lead-block"
}
})
// Remove duplicates from list of leads sent to kanban
if (self.leads) {
let uniqueLeads = self.leads.reduce((unique, obj) => {
// Check if the object id already exists in the unique array
if (!unique.some(item => item.id === obj.id)) {
unique.push(obj);
}
return unique;
}, []);
self.leads = uniqueLeads;
}
this.totalCounts = totalCounts;
setTimeout(() => {
Expand Down

0 comments on commit 9bd5a9f

Please sign in to comment.