0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-30 15:22:41 +00:00

more error handling

This commit is contained in:
Víctor Losada Hernández
2024-02-15 16:15:38 +01:00
parent 9c53541cbd
commit 1a80a74d4f
2 changed files with 3 additions and 10 deletions

View File

@@ -214,7 +214,6 @@ const ArchivePage = createClass({
const title = encodeURIComponent(this.state.title);
const size = parseInt(this.state.pageSize);
const {page, totalPages, legacy, v3} = this.state;
console.log('page: ', page);
const pages = new Array(totalPages).fill().map((_, index) => (
<a key={index} className={`pageNumber ${page == index + 1 ? 'currentPage' : ''}`} href={`/archive?title=${title}&page=${index+1}&size=${size}&v3=${v3}&legacy=${legacy}`}>{index + 1}</a>
));