mirror of
https://github.com/opensupports/opensupports.git
synced 2025-04-08 18:35:06 +02:00
change any lodash function
This commit is contained in:
parent
c55d8ea964
commit
b28e744ff7
@ -671,14 +671,14 @@ class TicketViewer extends React.Component {
|
||||
{content: 'None', id: 0}
|
||||
];
|
||||
|
||||
if(_.any(userDepartments, {id: ticketDepartmentId})) {
|
||||
if(_.some(userDepartments, {id: ticketDepartmentId})) {
|
||||
staffAssignmentItems.push({content: i18n('ASSIGN_TO_ME'), id: userId});
|
||||
}
|
||||
|
||||
staffAssignmentItems = staffAssignmentItems.concat(
|
||||
_.map(
|
||||
_.filter(staffMembers, ({id, departments}) => {
|
||||
return (id != userId) && _.any(departments, {id: ticketDepartmentId});
|
||||
return (id != userId) && _.some(departments, {id: ticketDepartmentId});
|
||||
}),
|
||||
({id, name}) => ({content: name, id})
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user