diff options
| author | bobzel <zzzman@gmail.com> | 2025-02-14 00:29:49 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2025-02-14 00:29:49 -0500 |
| commit | 4a9d8bf9e09a25faeba41c7ece46b86548d66847 (patch) | |
| tree | d6fef55d66a3424a8be6e970a3de15b00786d52c /src/client/views | |
| parent | b7845adf2904e18e237638a0bf907c6ec0fe06ee (diff) | |
removed chooseDoc option from gpttypes because its redundant with Filter
Diffstat (limited to 'src/client/views')
| -rw-r--r-- | src/client/views/collections/CollectionCardDeckView.tsx | 3 | ||||
| -rw-r--r-- | src/client/views/pdf/GPTPopup/GPTPopup.tsx | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/client/views/collections/CollectionCardDeckView.tsx b/src/client/views/collections/CollectionCardDeckView.tsx index ba68504d7..e00aa65d7 100644 --- a/src/client/views/collections/CollectionCardDeckView.tsx +++ b/src/client/views/collections/CollectionCardDeckView.tsx @@ -444,7 +444,7 @@ export class CollectionCardView extends CollectionSubView() { // Split the string into individual list items const listItems = gptOutput.split('======').filter(item => item.trim() !== ''); - if (questionType === GPTTypeStyle.Filter || questionType === GPTTypeStyle.ChooseDoc) { + if (questionType === GPTTypeStyle.Filter) { this.childDocs.forEach(d => { TagItem.removeTagFromDoc(d, '#chat'); }); @@ -471,7 +471,6 @@ export class CollectionCardView extends CollectionSubView() { } break; case GPTTypeStyle.Filter: - case GPTTypeStyle.ChooseDoc: TagItem.addTagToDoc(doc, '#chat'); Doc.setDocFilter(this.Document, 'tags', '#chat', 'check'); break; diff --git a/src/client/views/pdf/GPTPopup/GPTPopup.tsx b/src/client/views/pdf/GPTPopup/GPTPopup.tsx index 281748155..0b1ee78e3 100644 --- a/src/client/views/pdf/GPTPopup/GPTPopup.tsx +++ b/src/client/views/pdf/GPTPopup/GPTPopup.tsx @@ -151,8 +151,7 @@ export class GPTPopup extends ObservableReactComponent<object> { (() => { switch (this.questionTypeNumberToStyle(questionType)) { case GPTTypeStyle.AssignTags: - case GPTTypeStyle.Filter: - case GPTTypeStyle.ChooseDoc: return gptAPICall(this._documentDescriptions, GPTCallType.SUBSET, userPrompt); + case GPTTypeStyle.Filter: return gptAPICall(this._documentDescriptions, GPTCallType.SUBSET, userPrompt); case GPTTypeStyle.SortDocs: return gptAPICall(this._documentDescriptions, GPTCallType.SORT, userPrompt); default: return gptAPICall(StrCast(DocumentView.SelectedDocs().lastElement()?.gptInputText), GPTCallType.INFO, userPrompt); } // prettier-ignore |
