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 {