fixed logic bug when deleting from history

This commit is contained in:
Nikolaos Stefanou
2020-03-12 09:12:57 +00:00
parent d1f5ebd546
commit 3c90e904fc

View File

@@ -64,7 +64,7 @@ export class SSHModalComponent {
clearConnection (connection) {
this.recentConnections = this.recentConnections.filter(function (el) {
return el === connection
return el !== connection
})
this.config.store.ssh.recentConnections = this.recentConnections
this.config.save()