From 9b0fa4d5581942c54375c10e3887c8010d3eb5e4 Mon Sep 17 00:00:00 2001
From: aidahosa1 <aisosa_idahosa@brown.edu>
Date: Thu, 27 Jun 2024 14:06:22 -0400
Subject: time

---
 src/client/views/collections/CollectionCardDeckView.tsx | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

(limited to 'src/client/views/collections/CollectionCardDeckView.tsx')

diff --git a/src/client/views/collections/CollectionCardDeckView.tsx b/src/client/views/collections/CollectionCardDeckView.tsx
index d8f4362f1..d3e23c962 100644
--- a/src/client/views/collections/CollectionCardDeckView.tsx
+++ b/src/client/views/collections/CollectionCardDeckView.tsx
@@ -53,6 +53,7 @@ export class CollectionCardView extends CollectionSubView() {
     @observable _docDraggedIndex: number = -1;
     @observable _isACardBeingDragged: boolean = false;
     @observable overIndex: number = -1;
+    
 
     static getButtonGroup(groupFieldKey: 'chat' | 'star' | 'idea' | 'like', doc: Doc): number | undefined {
         return Cast(doc[groupFieldKey], 'number', null);
@@ -97,8 +98,10 @@ export class CollectionCardView extends CollectionSubView() {
         this.Document.childFilters_boolean = 'OR'
         this._disposers.sort = reaction(
             () => ({ cardSort: this.cardSort }),
-            ({ cardSort}) => (cardSort === cardSortings.Chat  ? this.openChatPopup() : GPTPopup.Instance.setVisible(false))
+            ({ cardSort}) => (cardSort === cardSortings.Chat ? this.openChatPopup() : GPTPopup.Instance.setVisible(false))
         );
+
+       
     }
 
     componentWillUnmount() {
@@ -475,6 +478,9 @@ export class CollectionCardView extends CollectionSubView() {
      * @param gptOutput
      */
     @action processGptOutput = (gptOutput: string) => {
+
+        console.log("HIIII")
+        console.log(StrCast(this.Document.cardSort) + "cardSort")
         // Split the string into individual list items
         const listItems = gptOutput.split('======').filter(item => item.trim() !== '');
         // console.log(listItems + " LISTT");
-- 
cgit v1.2.3-70-g09d2

