mirror of
https://github.com/Dadido3/Scanyonero.git
synced 2025-06-06 01:10:00 +00:00
Fix queueInsertAt DocumentQueue in UI
This commit is contained in:
parent
853a1bb58d
commit
1bd8be6abf
@ -100,7 +100,7 @@ export class DocumentQueue extends HTMLElement {
|
||||
});
|
||||
|
||||
documents.forEach(document => {
|
||||
if (this.hasChildNodes() || this.children.length === index) {
|
||||
if (!this.hasChildNodes() || this.children.length === index) {
|
||||
const newChild = this.appendChild(new DocumentQueueEntry());
|
||||
newChild.api = this.#api;
|
||||
newChild.queueEntry = document;
|
||||
|
Loading…
Reference in New Issue
Block a user