Skip to content

Commit

Permalink
edge case where sometimes folder collection is returned as an object …
Browse files Browse the repository at this point in the history
…instead of array
  • Loading branch information
arukompas committed Apr 5, 2023
1 parent eed3745 commit ccad142
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Controllers/FoldersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function index(Request $request)
$folders = $folders->sortByLatestFirstIncludingFiles();
}

return LogFolderResource::collection($folders);
return LogFolderResource::collection($folders->values());
}

public function download(string $folderIdentifier)
Expand Down

0 comments on commit ccad142

Please sign in to comment.