]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix: Ensure app discover section is returned as list fix/app-discover 48311/head
authorFerdinand Thiessen <opensource@fthiessen.de>
Tue, 24 Sep 2024 10:31:57 +0000 (12:31 +0200)
committerFerdinand Thiessen <opensource@fthiessen.de>
Tue, 24 Sep 2024 10:34:22 +0000 (12:34 +0200)
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
apps/settings/lib/Controller/AppSettingsController.php

index 930c1c0f7e27830f97beeefd39a484b02aab96cf..a971a893393c23992bc257aa4ec51da7c77b6e9b 100644 (file)
@@ -105,7 +105,7 @@ class AppSettingsController extends Controller {
        #[NoCSRFRequired]
        public function getAppDiscoverJSON(): JSONResponse {
                $data = $this->discoverFetcher->get(true);
-               return new JSONResponse($data);
+               return new JSONResponse(array_values($data));
        }
 
        /**