mirror of
https://github.com/getnora-io/nora.git
synced 2026-04-12 13:50:31 +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
|
||||
let total_pages = (total + limit - 1) / limit;
|
||||
let total_pages = total.div_ceil(limit);
|
||||
let start_item = if total == 0 {
|
||||
0
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user