Skip to content

Commit

Permalink
panic bug
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHub committed Jan 29, 2024
1 parent b0d7a13 commit bb26170
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controller/admin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ pub(crate) async fn admin_gallery(
let page_params = ParamsPage { anchor, n, is_desc };
let (start, end) = get_range(count, &page_params);

let mut imgs = imgs[(start - 1)..=(end - 1)].to_vec();
let mut imgs = imgs[(start - 1)..end].to_vec();
if is_desc {
imgs.reverse();
}
Expand Down

0 comments on commit bb26170

Please sign in to comment.