[ARVADOS-WORKBENCH2] updated: 1.2.1-1099-gdfef56f

Git user git at public.curoverse.com
Wed Dec 5 04:12:00 EST 2018


Summary of changes:
 src/store/search-bar/search-bar-actions.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

       via  dfef56fe2729c6cf89cb51aa40438e3adae698b0 (commit)
      from  a738a3bda2cd15740388f97488aaeb04edfd2385 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit dfef56fe2729c6cf89cb51aa40438e3adae698b0
Author: Daniel Kos <daniel.kos at contractors.roche.com>
Date:   Wed Dec 5 10:11:56 2018 +0100

    Code review fixes
    
    Feature #14280
    
    Arvados-DCO-1.1-Signed-off-by: Daniel Kos <daniel.kos at contractors.roche.com>

diff --git a/src/store/search-bar/search-bar-actions.ts b/src/store/search-bar/search-bar-actions.ts
index 9d1c6ac..199ec3f 100644
--- a/src/store/search-bar/search-bar-actions.ts
+++ b/src/store/search-bar/search-bar-actions.ts
@@ -307,7 +307,7 @@ export const parseSearchQuery: (query: string) => ParseSearchQuery = (searchValu
         'has:'
     ];
 
-    const hasKeywords = (search: string) => keywords.reduce((acc, keyword) => acc + search.indexOf(keyword) >= 0 ? 1 : 0, 0);
+    const hasKeywords = (search: string) => keywords.reduce((acc, keyword) => acc + (search.includes(keyword) ? 1 : 0), 0);
     let keywordsCnt = 0;
 
     const properties = {};

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list