Remove redundant variable

Co-authored-by: Trevor Buckner <calculuschild@gmail.com>
This commit is contained in:
G.AmbatteandTrevor Buckner authored and GitHub committed 2022-05-11 15:48:03 +12:00
1 parent 9f7ee39b09
commit 80fa48e592
1 file changed
+1 -2
+1 -2
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;
}
}