Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Release Engineering
Public
distrobuild
Commits
11001fa5
Commit
11001fa5
authored
Apr 12, 2021
by
Mustafa Gezen
🏗
Browse files
fix: negative page should not be sent as a parameter
parent
684f4512
Changes
2
Hide whitespace changes
Inline
Side-by-side
ui/src/components/Packages.tsx
View file @
11001fa5
...
...
@@ -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
,
...
...
ui/src/components/PaginatedResourceList.tsx
View file @
11001fa5
...
...
@@ -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
,
},
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment