Fix pagination and update actions to use working tree from branch

This commit is contained in:
thiloho
2024-09-17 20:58:34 +02:00
parent 8298445574
commit a4205857ac
4 changed files with 16 additions and 13 deletions

View File

@@ -7,7 +7,7 @@ export const load: PageServerLoad = async ({ parent, fetch, params, cookies, url
const resourceFilter = url.searchParams.get("logs_filter_resource");
const operationFilter = url.searchParams.get("logs_filter_operation");
const currentPage = Number.parseInt(url.searchParams.get("logs_results_page") ?? "1");
const resultOffset = currentPage === 1 ? 0 : currentPage * 50;
const resultOffset = (currentPage - 1) * 50;
const searchParams = new URLSearchParams();