diff options
| author | aidahosa1 <aisosa_idahosa@brown.edu> | 2024-05-18 01:33:27 -0400 |
|---|---|---|
| committer | aidahosa1 <aisosa_idahosa@brown.edu> | 2024-05-18 01:33:27 -0400 |
| commit | e168e0e880db808589d4c0a85e37c30b177bdb8e (patch) | |
| tree | 7a97471b793e586842f20d7783123319fb79ef4e /src/client/views/pdf/GPTPopup | |
| parent | 0b32642fc9c2d33810252cd90e45b8b505ef49b2 (diff) | |
comments lock in
Diffstat (limited to 'src/client/views/pdf/GPTPopup')
| -rw-r--r-- | src/client/views/pdf/GPTPopup/GPTPopup.tsx | 17 |
1 files changed, 0 insertions, 17 deletions
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 @@ -133,20 +133,6 @@ export class GPTPopup extends ObservableReactComponent<GPTPopupProps> { }; @observable - public sortPrompt: string = ''; - @action - public setSortPrompt = ((e: React.ChangeEvent<HTMLInputElement>) => { - this.sortPrompt = e.target.value; - }); - - @observable - public sortText: string = '' - @action - public setSortText = (t: string) => { - this.sortText = t - } - - @observable public sortDesc: string = '' @action public setSortDesc = (t:string) => { @@ -178,8 +164,6 @@ export class GPTPopup extends ObservableReactComponent<GPTPopupProps> { 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<GPTPopupProps> { } } catch (err) { console.error(err); - this.setSortText('Something went wrong :('); } this.setLoading(false); |
