From 74e0744cfd3be6d375ff47f0d32588996074f956 Mon Sep 17 00:00:00 2001 From: Nathan-SR <144961007+Nathan-SR@users.noreply.github.com> Date: Fri, 8 Nov 2024 00:07:59 -0500 Subject: image generation working --- src/client/views/nodes/DataVizBox/DocCreatorMenu/Template.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/client/views/nodes/DataVizBox/DocCreatorMenu/Template.tsx') diff --git a/src/client/views/nodes/DataVizBox/DocCreatorMenu/Template.tsx b/src/client/views/nodes/DataVizBox/DocCreatorMenu/Template.tsx index 11fad3bf1..31402eeeb 100644 --- a/src/client/views/nodes/DataVizBox/DocCreatorMenu/Template.tsx +++ b/src/client/views/nodes/DataVizBox/DocCreatorMenu/Template.tsx @@ -36,9 +36,8 @@ export class Template { this.contentFields.forEach(field => { const title: string = field.getTitle(); const val: FieldType = field.getContent() as FieldType; + if (!title || !val) return; doc[title] = val; - console.log(doc[title]) - console.log(doc['title']); }); return doc; } -- cgit v1.2.3-70-g09d2