From 954213642a4f75a62bebc406e89dbb6e17fe1646 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Tue, 24 Sep 2024 12:31:57 +0200 Subject: [PATCH] fix: Ensure app discover section is returned as list Signed-off-by: Ferdinand Thiessen --- apps/settings/lib/Controller/AppSettingsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/settings/lib/Controller/AppSettingsController.php b/apps/settings/lib/Controller/AppSettingsController.php index 9dfe4772b93f7..3b648376efa1b 100644 --- a/apps/settings/lib/Controller/AppSettingsController.php +++ b/apps/settings/lib/Controller/AppSettingsController.php @@ -132,7 +132,7 @@ public function viewApps(): TemplateResponse { */ public function getAppDiscoverJSON(): JSONResponse { $data = $this->discoverFetcher->get(true); - return new JSONResponse($data); + return new JSONResponse(array_values($data)); } /**