minor fixes
This commit is contained in:
parent
66a89f82ba
commit
3bf27c5060
@ -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;
|
||||
|
||||
@ -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
|
||||
Loading…
x
Reference in New Issue
Block a user