From c86f18caf079d97f673935b7a83a16d6e97bb804 Mon Sep 17 00:00:00 2001
From: Nathan-SR <144961007+Nathan-SR@users.noreply.github.com>
Date: Tue, 5 Nov 2024 17:12:29 -0500
Subject: edits are persisting!!

---
 src/client/views/nodes/DataVizBox/DocCreatorMenu/DocCreatorMenu.tsx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'src/client/views/nodes/DataVizBox/DocCreatorMenu/DocCreatorMenu.tsx')

diff --git a/src/client/views/nodes/DataVizBox/DocCreatorMenu/DocCreatorMenu.tsx b/src/client/views/nodes/DataVizBox/DocCreatorMenu/DocCreatorMenu.tsx
index e21f0a70c..d214a7954 100644
--- a/src/client/views/nodes/DataVizBox/DocCreatorMenu/DocCreatorMenu.tsx
+++ b/src/client/views/nodes/DataVizBox/DocCreatorMenu/DocCreatorMenu.tsx
@@ -112,12 +112,13 @@ export class DocCreatorMenu extends ObservableReactComponent<FieldViewProps> {
         this._templateDocs = docs.map(doc => (doc.annotationOn ? DocCast(doc.annotationOn) : doc));
     };
     @action updateTemplatePreviews = (templates: Template[]) => {
+        templates.forEach(template => template.renderUpdates());
         this._suggestedTemplatePreviews = templates.map(template => {
             const doc = template.mainField.renderedDoc();
             const wrapper: Doc = Docs.Create.FreeformDocument([doc], { _height: NumListCast(doc._height)[0], _width: NumListCast(doc._width)[0], title: ''});
             return {doc: wrapper, template: template};
         });
-    }
+    };
     @action setSuggestedTemplates = (templates: Template[]) => {
         this._suggestedTemplates = templates;
         this.updateTemplatePreviews(templates);
-- 
cgit v1.2.3-70-g09d2

