Skip to content

Commit

Permalink
fix: Ensure app discover section is returned as list
Browse files Browse the repository at this point in the history
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
  • Loading branch information
susnux authored and backportbot[bot] committed Sep 24, 2024
1 parent 8e58d58 commit 9542136
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/settings/lib/Controller/AppSettingsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

/**
Expand Down

0 comments on commit 9542136

Please sign in to comment.