|
@@ -9,7 +9,7 @@ class ContactItem {
|
|
|
this.groups = props.groups || [];
|
|
this.groups = props.groups || [];
|
|
|
}
|
|
}
|
|
|
matchesAddressOrName(search) {
|
|
matchesAddressOrName(search) {
|
|
|
- if (this.addrs.filter(x => x.indexOf(search.trim()) >= 0)[0].length > 0) {
|
|
|
|
|
|
|
+ if (this.addrs.filter(x => x.indexOf(search.trim()) >= 0).length > 0) {
|
|
|
return true;
|
|
return true;
|
|
|
}
|
|
}
|
|
|
return false;
|
|
return false;
|