fix: currentPage of pagination component is undefined #1002
No reviewers
Labels
No Label
area/internal-code
changes requested
confirmed
dependencies
duplicate
good first issue
help wanted
hosting
invalid
kind/bug
kind/feature
question
wontfix
No Milestone
No project
No Assignees
3 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: vikunja/frontend#1002
Loading…
Reference in New Issue
No description provided.
Delete Branch "fix/current-page-undefined"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR fixes the following error when opening list views (List or Table):
The prop value is coming from a mixin and I'm suspecting the mixin is not yet available when the pagination component gets mounted into the page.
Hi konrad!
Thank you for creating a PR!
I've deployed the changes of this PR on a preview environment under this URL: https://1002-fixcurrent-page-undefined--vikunja-frontend-preview.netlify.app
You can use this url to view the changes live and test them out.
You will need to manually connect this to an api running somehwere. The easiest to use is https://try.vikunja.io/.
Have a nice day!
It feels like either currentPage should never be undefined or the prop of the pagination component shold not be required and instead default to
0
.I think that makes more sense. Refactored to set it to
0
by default.