From 25ee9e6b3f7da67bcf94eb2affd5793c67777930 Mon Sep 17 00:00:00 2001
From: bobzel <zzzman@gmail.com>
Date: Wed, 21 Aug 2024 17:04:32 -0400
Subject: cleanup of face recognition.  some lint fixes.

---
 src/client/views/nodes/DocumentView.tsx | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

(limited to 'src/client/views/nodes/DocumentView.tsx')

diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx
index c807d99ac..5efdb3df4 100644
--- a/src/client/views/nodes/DocumentView.tsx
+++ b/src/client/views/nodes/DocumentView.tsx
@@ -1,5 +1,4 @@
 /* eslint-disable no-use-before-define */
-/* eslint-disable react/jsx-props-no-spreading */
 import { IconProp } from '@fortawesome/fontawesome-svg-core';
 import { Property } from 'csstype';
 import { Howl } from 'howler';
@@ -341,7 +340,6 @@ export class DocumentViewInternal extends DocComponent<FieldViewProps & Document
                 if ((clickFunc && waitForDblClick !== 'never') || waitForDblClick === 'always') {
                     this._doubleClickTimeout && clearTimeout(this._doubleClickTimeout);
                     this._doubleClickTimeout = setTimeout(this._singleClickFunc, 300);
-                    // eslint-disable-next-line no-use-before-define
                 } else if (!SnappingManager.LongPress) {
                     this._singleClickFunc();
                     this._singleClickFunc = undefined;
@@ -354,7 +352,6 @@ export class DocumentViewInternal extends DocComponent<FieldViewProps & Document
 
     onPointerDown = (e: React.PointerEvent): void => {
         if (this._props.isGroupActive?.() === GroupActive.child && !this._props.isDocumentActive?.()) return;
-        // eslint-disable-next-line no-use-before-define
         this._longPressSelector = setTimeout(() => SnappingManager.LongPress && this._props.select(false), 1000);
         if (!DocumentView.DownDocView) DocumentView.DownDocView = this._docView;
 
@@ -405,7 +402,6 @@ export class DocumentViewInternal extends DocComponent<FieldViewProps & Document
             this._doubleTap = (this.onDoubleClickHdlr?.script || this.Document.defaultDoubleClick !== 'ignore') && Date.now() - this._lastTap < ClientUtils.CLICK_TIME;
             if (!this.isContentActive()) this._lastTap = Date.now(); // don't want to process the start of a double tap if the doucment is selected
         }
-        // eslint-disable-next-line no-use-before-define
         if (SnappingManager.LongPress) e.preventDefault();
     };
 
@@ -504,7 +500,7 @@ export class DocumentViewInternal extends DocComponent<FieldViewProps & Document
             DocCast(this.dataDoc[this.props.fieldKey + '_0'])[DocData].text = res;
             console.log(res);
         } catch (err) {
-            console.error('GPT call failed');
+            console.error('GPT call failed', err);
         }
     };
 
@@ -1539,7 +1535,7 @@ export class DocumentView extends DocComponent<DocumentViewProps>() {
             )
         );
     }
-    // eslint-disable-next-line default-param-last
+
     public static FocusOrOpen(docIn: Doc, optionsIn: FocusViewOptions = { willZoomCentered: true, zoomScale: 0, openLocation: OpenWhere.toggleRight }, containingDoc?: Doc) {
         let doc = docIn;
         const options = optionsIn;
-- 
cgit v1.2.3-70-g09d2

