mirror of
https://github.com/Eugeny/tabby.git
synced 2025-07-06 19:39:53 +00:00
fixed logic bug when deleting from history
This commit is contained in:
parent
d1f5ebd546
commit
3c90e904fc
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user