fix: Ensure app discover section is returned as list

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
Ferdinand Thiessen 2024-09-24 12:31:57 +02:00 committed by backportbot[bot]
parent 79dd81995f
commit dbe88caec5

View file

@ -106,7 +106,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));
}
/**