minor fixes

This commit is contained in:
Timo Bejan 2021-08-13 14:29:28 +03:00
parent 66a89f82ba
commit 3bf27c5060
3 changed files with 2 additions and 4 deletions

View File

@ -559,7 +559,7 @@ export class FilePreviewScreenComponent extends AutoUnsubscribe implements OnIni
private async _loadFileData(performUpdate: boolean = false): Promise<void> {
const fileData = await this._fileDownloadService.loadActiveFileData().toPromise();
if (!fileData.fileStatus.isPending && !fileData.fileStatus.isError) {
if (!fileData.fileStatus?.isPending && !fileData.fileStatus?.isError) {
if (performUpdate) {
this.fileData.redactionLog = fileData.redactionLog;
this.fileData.redactionChangeLog = fileData.redactionChangeLog;

View File

@ -63,7 +63,6 @@ export class PdfViewerUtils {
? Math.ceil(this.instance?.docViewer?.getCurrentPage() / 2)
: this.instance?.docViewer?.getCurrentPage();
} catch (e) {
console.error(e);
return null;
}
}
@ -76,7 +75,6 @@ export class PdfViewerUtils {
try {
return this.isCompareMode ? Math.ceil(this.instance?.docViewer?.getPageCount() / 2) : this.instance?.docViewer?.getPageCount();
} catch (e) {
console.error(e);
return null;
}
}

@ -1 +1 @@
Subproject commit 360ef9bd6c87ec2ebb22554253e9ce9390775f09
Subproject commit 1d46b21c74c07d6811a99b9de6c940c740bc8ceb