From 23d4470b3f6a0bd862f3f5f9c775be039d479d81 Mon Sep 17 00:00:00 2001 From: bobzel Date: Mon, 6 May 2024 19:09:02 -0400 Subject: eslint cleanup --- src/client/views/nodes/PDFBox.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/client/views/nodes/PDFBox.tsx') diff --git a/src/client/views/nodes/PDFBox.tsx b/src/client/views/nodes/PDFBox.tsx index 1dc194c42..7a89b143b 100644 --- a/src/client/views/nodes/PDFBox.tsx +++ b/src/client/views/nodes/PDFBox.tsx @@ -328,8 +328,7 @@ export class PDFBox extends ViewBoxAnnotatableComponent() { setPdfViewer = (pdfViewer: PDFViewer) => { this._pdfViewer = pdfViewer; - const docView = this.DocumentView?.(); - if (this._initialScrollTarget && docView) { + if (this._initialScrollTarget) { this.focus(this._initialScrollTarget, { instant: true }); this._initialScrollTarget = undefined; } @@ -559,7 +558,7 @@ export class PDFBox extends ViewBoxAnnotatableComponent() { removeDocument={this.removeDocument} /> ) : ( -
setupMoveUpEvents(this, e, returnFalse, emptyFunction, () => DocumentView.SelectView(this.DocumentView?.()!, false), true)}> +
setupMoveUpEvents(this, e, returnFalse, emptyFunction, () => this._props.select(false), true)}>