mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-24 18:32:41 +00:00
Remove redundant variable
Co-authored-by: Trevor Buckner <calculuschild@gmail.com>
This commit is contained in:
@@ -197,8 +197,7 @@ const Editor = createClass({
|
||||
let currentPage = 1;
|
||||
for (const page of pageCollection) {
|
||||
if(page.getBoundingClientRect().bottom > (brewRendererHeight / 2)) {
|
||||
const pageId = page.id;
|
||||
currentPage = parseInt(pageId.slice(1, pageId.length)) || 1;
|
||||
currentPage = parseInt(page.id.slice(1)) || 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user