user před 6 roky
rodič
revize
b76cca2566
3 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. 1 1
      lib/contact-item.js
  2. 1 1
      lib/contact-item.js.map
  3. 1 1
      src/contact-item.ts

+ 1 - 1
lib/contact-item.js

@@ -9,7 +9,7 @@ class ContactItem {
         this.groups = props.groups || [];
     }
     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 false;

Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 1 - 1
lib/contact-item.js.map


+ 1 - 1
src/contact-item.ts

@@ -17,7 +17,7 @@ export class ContactItem {
   }
 
   public matchesAddressOrName(search: string): boolean {
-      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 false;