Fix: initialize current page to 1

This commit is contained in:
shamoon 2024-04-07 11:15:49 -07:00
parent 654cc05f0e
commit 622fcf96a0

View File

@ -148,7 +148,7 @@ export class DocumentDetailComponent
custom_fields: new FormArray([]),
})
previewCurrentPage: number
previewCurrentPage: number = 1
previewNumPages: number
previewZoomSetting: ZoomSetting = ZoomSetting.One
previewZoomScale: ZoomSetting = ZoomSetting.PageWidth