Closed gregorylegarec closed 7 years ago
This PR is supposed to fix #259
This issue seems to occur when Fuzzy.match is called with a non string parameter as target.
target
I was not able to reproduce it manually so I forced the behavior by editing the line https://github.com/cozy/cozy-contacts/blob/master/client/app/models/contact.coffee#L172 to
targets = _.compact [@toString(), @attributes.org, {test:'not a string'}]
It threw the exact same error.
Thanks @m4dz to have a review.
This PR is supposed to fix #259
This issue seems to occur when Fuzzy.match is called with a non string parameter as
target
.I was not able to reproduce it manually so I forced the behavior by editing the line https://github.com/cozy/cozy-contacts/blob/master/client/app/models/contact.coffee#L172 to
It threw the exact same error.
Thanks @m4dz to have a review.