From e43da311fe83d32bf04e16888a8bbb51d22b0ad2 Mon Sep 17 00:00:00 2001 From: Omar Kamel <30291302+TekExplorer@users.noreply.github.com> Date: Wed, 14 Dec 2022 16:19:45 -0500 Subject: [PATCH] api(client): keep existing server description when empty (#4619) --- app/Http/Controllers/Api/Client/Servers/SettingsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Api/Client/Servers/SettingsController.php b/app/Http/Controllers/Api/Client/Servers/SettingsController.php index 6e6451836..e84c15910 100644 --- a/app/Http/Controllers/Api/Client/Servers/SettingsController.php +++ b/app/Http/Controllers/Api/Client/Servers/SettingsController.php @@ -35,7 +35,7 @@ class SettingsController extends ClientApiController public function rename(RenameServerRequest $request, Server $server): JsonResponse { $name = $request->input('name'); - $description = $request->input('description') ?? ''; + $description = $request->input('description') ?? $server->description; $this->repository->update($server->id, [ 'name' => $name, 'description' => $description,