Skip to content

fix: fix the initial state of the current page#20

Open
jerojasol wants to merge 1 commit intomidudev:mainfrom
jerojasol:main
Open

fix: fix the initial state of the current page#20
jerojasol wants to merge 1 commit intomidudev:mainfrom
jerojasol:main

Conversation

@jerojasol
Copy link

This change solves a problem loading the page the first time. In the current version, an url like "search/page=2" will fail. Besides, I replaced the Number for the parseInt function that returns a NaN if the param "page" is empty, with Number it returns 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants