mirror of
https://github.com/getnora-io/nora.git
synced 2026-04-12 10:20:32 +00:00
fix: use div_ceil instead of manual implementation
This commit is contained in:
@@ -341,7 +341,7 @@ pub fn render_registry_list_paginated(
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Pagination
|
// Pagination
|
||||||
let total_pages = (total + limit - 1) / limit;
|
let total_pages = total.div_ceil(limit);
|
||||||
let start_item = if total == 0 {
|
let start_item = if total == 0 {
|
||||||
0
|
0
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user