From e168e0e880db808589d4c0a85e37c30b177bdb8e Mon Sep 17 00:00:00 2001 From: aidahosa1 Date: Sat, 18 May 2024 01:33:27 -0400 Subject: comments lock in --- src/client/views/pdf/GPTPopup/GPTPopup.tsx | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'src/client/views/pdf') diff --git a/src/client/views/pdf/GPTPopup/GPTPopup.tsx b/src/client/views/pdf/GPTPopup/GPTPopup.tsx index d94be1860..3d138fa7d 100644 --- a/src/client/views/pdf/GPTPopup/GPTPopup.tsx +++ b/src/client/views/pdf/GPTPopup/GPTPopup.tsx @@ -132,20 +132,6 @@ export class GPTPopup extends ObservableReactComponent { this.textAnchor = anchor; }; - @observable - public sortPrompt: string = ''; - @action - public setSortPrompt = ((e: React.ChangeEvent) => { - this.sortPrompt = e.target.value; - }); - - @observable - public sortText: string = '' - @action - public setSortText = (t: string) => { - this.sortText = t - } - @observable public sortDesc: string = '' @@ -178,8 +164,6 @@ export class GPTPopup extends ObservableReactComponent { try { const res = await gptAPICall(this.sortDesc, GPTCallType.SORT); - this.setSortText(res || 'Something went wrong :('); - // Trigger the callback with the result if (this.onSortComplete) { this.onSortComplete(res || 'Something went wrong :('); @@ -187,7 +171,6 @@ export class GPTPopup extends ObservableReactComponent { } } catch (err) { console.error(err); - this.setSortText('Something went wrong :('); } this.setLoading(false); -- cgit v1.2.3-70-g09d2