0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-27 11:32:38 +00:00

"Updated scrollToPage argument to add 1 to pageNumber"

This commit is contained in:
Víctor Losada Hernández
2024-05-31 20:22:14 +02:00
parent acbdd1b801
commit 8efea112b4

View File

@@ -85,7 +85,7 @@ const BrewRenderer = (props)=>{
if (pageIdRegex.test(locationHash)) {
// Extract page number from the ID
const pageNumber = parseInt(locationHash.slice(2));
scrollToPage(pageNumber);
scrollToPage(pageNumber+1);
} else {
// Treat it as an element ID
const elementId = locationHash.slice(1); // Remove the leading '#'