removed reference to not present html element.

This caused unhandled exception leading to undo when removing files to not resolve
This commit is contained in:
Connor Yoh 2025-02-28 17:11:25 +00:00
parent 454fd79187
commit 10a79461ba

View File

@ -34,12 +34,10 @@ export class AddFilesCommand extends Command {
if (this.pagesContainer.childElementCount === 0) { if (this.pagesContainer.childElementCount === 0) {
const filenameInput = document.getElementById('filename-input'); const filenameInput = document.getElementById('filename-input');
const filenameParagraph = document.getElementById('filename');
const downloadBtn = document.getElementById('export-button'); const downloadBtn = document.getElementById('export-button');
filenameInput.disabled = true; filenameInput.disabled = true;
filenameInput.value = ''; filenameInput.value = '';
filenameParagraph.innerText = '';
downloadBtn.disabled = true; downloadBtn.disabled = true;
} }