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
No known key found for this signature in database
GPG Key ID: 904BA59F31C48FB6

View File

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