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:
@@ -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 '#'
|
||||
|
||||
Reference in New Issue
Block a user