Skip to content
Snippets Groups Projects
Commit 87746417 authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

Use the correct key type

slice returns an array, this works for some reason, but is very confusing
parent 56c25070
Branches
No related tags found
No related merge requests found
Pipeline #11450 passed with warnings
......@@ -136,11 +136,7 @@ class QualifiedSignaturePdfUpload extends ScopedElementsMixin(VPUSignatureLitEle
this.signaturePlacementInProgress = false;
// seems like keys are sorted, not in the order they were added
const keys = Object.keys(this.queuedFiles);
// get a key to process
const key = keys.slice(0, 1);
const key = Object.keys(this.queuedFiles)[0];
// take the file off the queue
const file = this.takeFileFromQueue(key);
......@@ -174,7 +170,6 @@ class QualifiedSignaturePdfUpload extends ScopedElementsMixin(VPUSignatureLitEle
storePDFData(event) {
const data = event.detail;
console.log(data);
this.queuedFilesSignaturePlacements[this.currentPreviewQueueKey] = data;
this.signaturePlacementInProgress = false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment