mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-27 02:41:53 +00:00
splice not delete
This commit is contained in:
committed by
Drew Ansbacher
parent
7e3e1cc190
commit
cf5aa94df3
@@ -63,6 +63,7 @@ export class SSHKeysPage {
|
||||
|
||||
try {
|
||||
const key = await this.embassyApi.addSshKey({ key: pubkey })
|
||||
console.log('key', key)
|
||||
this.sshKeys.push(key)
|
||||
} catch (e) {
|
||||
this.errToast.present(e)
|
||||
@@ -103,7 +104,7 @@ export class SSHKeysPage {
|
||||
try {
|
||||
const entry = this.sshKeys[i]
|
||||
await this.embassyApi.deleteSshKey({ fingerprint: entry.fingerprint })
|
||||
delete this.sshKeys[i]
|
||||
this.sshKeys.splice(i, 1)
|
||||
} catch (e) {
|
||||
this.errToast.present(e)
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user