mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-09 18:02:39 +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)) {
|
if (pageIdRegex.test(locationHash)) {
|
||||||
// Extract page number from the ID
|
// Extract page number from the ID
|
||||||
const pageNumber = parseInt(locationHash.slice(2));
|
const pageNumber = parseInt(locationHash.slice(2));
|
||||||
scrollToPage(pageNumber);
|
scrollToPage(pageNumber+1);
|
||||||
} else {
|
} else {
|
||||||
// Treat it as an element ID
|
// Treat it as an element ID
|
||||||
const elementId = locationHash.slice(1); // Remove the leading '#'
|
const elementId = locationHash.slice(1); // Remove the leading '#'
|
||||||
|
|||||||
Reference in New Issue
Block a user