mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-09-22 00:06:06 +08:00
fix(*): remove unnecessary code from last commit
This commit is contained in:
parent
46a6e229eb
commit
6af864e3bd
|
@ -89,13 +89,6 @@ ParticipantsTextField = React.createClass
|
||||||
false
|
false
|
||||||
@props.change(updates)
|
@props.change(updates)
|
||||||
|
|
||||||
_removeOne: (participant) ->
|
|
||||||
field = @props.field
|
|
||||||
updates = {}
|
|
||||||
updates[field] = _.reject @props.participants[field], (p) ->
|
|
||||||
p.email is participant.email
|
|
||||||
@props.change(updates)
|
|
||||||
|
|
||||||
_add: (values) ->
|
_add: (values) ->
|
||||||
values = _.compact _.map values, (value) ->
|
values = _.compact _.map values, (value) ->
|
||||||
if value instanceof Contact
|
if value instanceof Contact
|
||||||
|
|
Loading…
Reference in a new issue