aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/DataVizBox/DocCreatorMenu/Template.tsx
diff options
context:
space:
mode:
authorNathan-SR <144961007+Nathan-SR@users.noreply.github.com>2024-11-08 00:07:59 -0500
committerNathan-SR <144961007+Nathan-SR@users.noreply.github.com>2024-11-08 00:07:59 -0500
commit74e0744cfd3be6d375ff47f0d32588996074f956 (patch)
treef18959ddeb5d2aaf9e4fa7f05c85ed4b4b6c2dbb /src/client/views/nodes/DataVizBox/DocCreatorMenu/Template.tsx
parentb6ed6542f911694c673b9e324d7387ea16dc7d0b (diff)
image generation working
Diffstat (limited to 'src/client/views/nodes/DataVizBox/DocCreatorMenu/Template.tsx')
-rw-r--r--src/client/views/nodes/DataVizBox/DocCreatorMenu/Template.tsx3
1 files changed, 1 insertions, 2 deletions
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;
}