user 6 년 전
부모
커밋
b76cca2566
3개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  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;

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 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;