From 1a04a57c0186470ba314e136d3fdec48177110a6 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Thu, 28 Sep 2023 13:40:58 +0200 Subject: [PATCH] fix: sentry 4504136641 --- app/Http/Livewire/Server/ShowPrivateKey.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Livewire/Server/ShowPrivateKey.php b/app/Http/Livewire/Server/ShowPrivateKey.php index a0aa6e1e2..c9c11becb 100644 --- a/app/Http/Livewire/Server/ShowPrivateKey.php +++ b/app/Http/Livewire/Server/ShowPrivateKey.php @@ -14,8 +14,8 @@ class ShowPrivateKey extends Component public function setPrivateKey($newPrivateKeyId) { try { - refresh_server_connection($this->server->privateKey); $oldPrivateKeyId = $this->server->private_key_id; + refresh_server_connection($this->server->privateKey); $this->server->update([ 'private_key_id' => $newPrivateKeyId ]);