mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-06-06 18:30:57 +00:00
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:
parent
454fd79187
commit
10a79461ba
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user