Commit 11001fa5 authored by Mustafa Gezen's avatar Mustafa Gezen
Browse files

fix: negative page should not be sent as a parameter

parent 684f4512
......@@ -89,7 +89,7 @@ export const Packages = () => {
const [, res] = await to(
Axios.get('/packages/', {
params: {
page: page - 1,
page: Math.max(0, page - 1),
size,
name: nameFilter,
modules_only: modulesOnlyFilter,
......
......@@ -82,7 +82,7 @@ export const PaginatedResourceList = <T extends DataTableRow>(
const [, res] = await to(
Axios.get(`/${props.name}/`, {
params: {
page: page - 1,
page: Math.max(0, page - 1),
size,
},
})
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment