mirror of
https://github.com/opensupports/opensupports.git
synced 2025-07-30 09:15:02 +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}
|
{content: 'None', id: 0}
|
||||||
];
|
];
|
||||||
|
|
||||||
if(_.any(userDepartments, {id: ticketDepartmentId})) {
|
if(_.some(userDepartments, {id: ticketDepartmentId})) {
|
||||||
staffAssignmentItems.push({content: i18n('ASSIGN_TO_ME'), id: userId});
|
staffAssignmentItems.push({content: i18n('ASSIGN_TO_ME'), id: userId});
|
||||||
}
|
}
|
||||||
|
|
||||||
staffAssignmentItems = staffAssignmentItems.concat(
|
staffAssignmentItems = staffAssignmentItems.concat(
|
||||||
_.map(
|
_.map(
|
||||||
_.filter(staffMembers, ({id, departments}) => {
|
_.filter(staffMembers, ({id, departments}) => {
|
||||||
return (id != userId) && _.any(departments, {id: ticketDepartmentId});
|
return (id != userId) && _.some(departments, {id: ticketDepartmentId});
|
||||||
}),
|
}),
|
||||||
({id, name}) => ({content: name, id})
|
({id, name}) => ({content: name, id})
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user