Skip to content

Commit

Permalink
Merge pull request arunbandari#79 from 0416vidya/master
Browse files Browse the repository at this point in the history
arunbandari#78 fix search issue
  • Loading branch information
arunbandari authored Dec 31, 2021
2 parents ba399aa + 62668b6 commit eb92a79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export class AppComponent implements OnInit {
const pattern = new RegExp(`.*${this.searchText}.*`, 'i');
this.menuData = this.menuData
.map((db) => {
db.collections = db.collections.filter((col) => pattern.test(col));
db.collections = db.collections.filter((col) => pattern.test(col.name));
return db;
})
.filter((db) => db.collections.length);
Expand Down

0 comments on commit eb92a79

Please sign in to comment.