From 289aef96938e23ac3696abd6020c9967a763cd03 Mon Sep 17 00:00:00 2001 From: Drew Ansbacher Date: Mon, 20 Sep 2021 13:12:29 -0600 Subject: [PATCH] splice not delete --- .../server-routes/security-routes/ssh-keys/ssh-keys.page.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/src/app/pages/server-routes/security-routes/ssh-keys/ssh-keys.page.ts b/ui/src/app/pages/server-routes/security-routes/ssh-keys/ssh-keys.page.ts index 2230b8875..770d81e0e 100644 --- a/ui/src/app/pages/server-routes/security-routes/ssh-keys/ssh-keys.page.ts +++ b/ui/src/app/pages/server-routes/security-routes/ssh-keys/ssh-keys.page.ts @@ -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 {