Skip to content

Commit

Permalink
chore: code tidying
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismclarke committed Oct 5, 2023
1 parent d3db8cc commit 4702b8c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Component, EventEmitter, Input, OnDestroy, Output } from '@angular/core';
import { FileService } from '@picsa/shared/services/core/file.service';
import { _wait } from '@picsa/utils';
import { RxAttachment, RxDocument } from 'rxdb';
import { Subject, Subscription, takeUntil } from 'rxjs';

Expand Down Expand Up @@ -81,6 +82,8 @@ export class ResourceDownloadComponent implements OnDestroy {
throw error;
},
complete: async () => {
// give small timeout to allow UI to update
await _wait(50);
await this.persistDownload(downloadData);
},
});
Expand Down

0 comments on commit 4702b8c

Please sign in to comment.