Skip to content

Commit

Permalink
Function Search is not working. Fixes #918
Browse files Browse the repository at this point in the history
  • Loading branch information
alrod committed Feb 14, 2017
1 parent 4864b4c commit 673f51e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ export class SidebarPipe implements PipeTransform {
if (args && args.length > 0) {
var query = typeof args === 'string' ? args : args[0];
if (query) {
return items.filter(item => !item.clientOnly && item.name.toLocaleLowerCase().indexOf(query.toLocaleLowerCase()
&& item.name !== PortalResources.sidebar_newApiProxy) !== -1);
return items.filter(item => !item.clientOnly && item.name.toLocaleLowerCase().indexOf(query.toLocaleLowerCase()) !== -1 && item.name !== PortalResources.sidebar_newApiProxy);
}
}
return items;
Expand Down

0 comments on commit 673f51e

Please sign in to comment.