0
0
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:
G.Ambatte
2022-05-11 15:48:03 +12:00
committed by GitHub
parent 9f7ee39b09
commit 80fa48e592

View File

@@ -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;
}
}