mirror of
https://github.com/Dadido3/Scanyonero.git
synced 2025-06-06 17:30: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 => {
|
documents.forEach(document => {
|
||||||
if (this.hasChildNodes() || this.children.length === index) {
|
if (!this.hasChildNodes() || this.children.length === index) {
|
||||||
const newChild = this.appendChild(new DocumentQueueEntry());
|
const newChild = this.appendChild(new DocumentQueueEntry());
|
||||||
newChild.api = this.#api;
|
newChild.api = this.#api;
|
||||||
newChild.queueEntry = document;
|
newChild.queueEntry = document;
|
||||||
|
Loading…
Reference in New Issue
Block a user