more cleanup

This commit is contained in:
Eugene Pankov
2018-09-04 22:49:12 +02:00
parent d6f163b048
commit 7d25816751
6 changed files with 84 additions and 90 deletions

View File

@@ -74,7 +74,7 @@ export class SSHModalComponent {
let connections = this.connections
if (this.quickTarget) {
connections = connections.filter(connection => (connection.name + connection.group).toLowerCase().indexOf(this.quickTarget) >= 0)
connections = connections.filter(connection => (connection.name + connection.group).toLowerCase().includes(this.quickTarget))
}
for (let connection of connections) {