Skip to content

Commit

Permalink
feat: 同步前端更改
Browse files Browse the repository at this point in the history
  • Loading branch information
devhaozi committed Oct 29, 2023
1 parent ef79f04 commit 462b2f9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/http/controllers/plugins/s3fs/s3fs_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ func (c *S3fsController) List(ctx http.Context) http.Response {
endIndex = len(s3fsList)
}
pagedS3fsList := s3fsList[startIndex:endIndex]
if pagedS3fsList == nil {
pagedS3fsList = []s3fs{}
}

return controllers.Success(ctx, http.Json{
"total": len(s3fsList),
Expand Down

0 comments on commit 462b2f9

Please sign in to comment.