Skip to content

Commit

Permalink
bug: uploading extension in modal not possible
Browse files Browse the repository at this point in the history
  • Loading branch information
ck-c8y committed Mar 14, 2024
1 parent 72f8603 commit 6a5f631
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,9 @@ export class AddExtensionComponent implements OnDestroy {

onFileDroppedEvent(event) {
if (event && event.length > 0) {
const [file] = event;
this.onFile(file.file);
// eslint-disable-next-line prefer-destructuring
const file = event[0].file;
this.onFile(file);
}
}

Expand Down

0 comments on commit 6a5f631

Please sign in to comment.