Fix: unused renderIndex
This commit is contained in:
parent
7acb131642
commit
85e70491e4
|
@ -447,7 +447,6 @@ function createSectionsEditor(style) {
|
||||||
focusOn = 0,
|
focusOn = 0,
|
||||||
done
|
done
|
||||||
}) {
|
}) {
|
||||||
let renderIndex = sections.length;
|
|
||||||
container.classList.add('hidden');
|
container.classList.add('hidden');
|
||||||
chunk();
|
chunk();
|
||||||
|
|
||||||
|
@ -458,8 +457,8 @@ function createSectionsEditor(style) {
|
||||||
sections[focusOn].cm.focus();
|
sections[focusOn].cm.focus();
|
||||||
}
|
}
|
||||||
container.classList.remove('hidden');
|
container.classList.remove('hidden');
|
||||||
for (; renderIndex < sections.length; renderIndex++) {
|
for (const section of sections) {
|
||||||
sections[renderIndex].cm.refreshOnView();
|
section.cm.refreshOnView();
|
||||||
}
|
}
|
||||||
if (done) {
|
if (done) {
|
||||||
done();
|
done();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user