From 6a4de8d05ce46dc29ac69f696c419a57e604f516 Mon Sep 17 00:00:00 2001
From: Sophie Zhang <sophie_zhang@brown.edu>
Date: Thu, 16 Nov 2023 01:30:42 -0500
Subject: sorting?

---
 .../views/collections/collectionFreeForm/CollectionFreeFormView.tsx    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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

diff --git a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx
index fb2de5647..b0be060bd 100644
--- a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx
+++ b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx
@@ -1820,10 +1820,10 @@ export class CollectionFreeFormView extends CollectionSubView<Partial<collection
     @action
     gptStyling = async () => {
         this.openProperties();
+        PropertiesView.Instance?.setGeneratedStyles([]);
         console.log('Title', this.rootDoc.title);
         console.log('bgcolor', this.layoutDoc._backgroundColor);
         // doc.backgroundColor
-        console.log('styling');
         const inputDocs = this.childDocs.filter(doc => doc.type == 'rich text');
         const imgDocs = this.childDocs.filter(doc => doc.type == 'image');
         const imgUrls = imgDocs.map(doc => this.choosePath((doc.data as ImageField).url));
@@ -1837,6 +1837,7 @@ export class CollectionFreeFormView extends CollectionSubView<Partial<collection
         console.log('Hexes', colorHexes);
 
         PropertiesView.Instance?.setInputDocs(inputDocs);
+
         // also pass it colors
         const gptInput = inputDocs.map((doc, i) => ({
             id: i,
-- 
cgit v1.2.3-70-g09d2

