aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/DataVizBox/DocCreatorMenu/DocCreatorMenu.tsx
diff options
context:
space:
mode:
authorNathan-SR <144961007+Nathan-SR@users.noreply.github.com>2024-12-07 01:32:44 -0500
committerNathan-SR <144961007+Nathan-SR@users.noreply.github.com>2024-12-07 01:32:44 -0500
commit047bd02ea4f2a7f565ddfb5da9d1c0685d18e08e (patch)
treee567e9053c03f312923c7dd93392be7f0740b2fc /src/client/views/nodes/DataVizBox/DocCreatorMenu/DocCreatorMenu.tsx
parent2b9251f36be19b9fab9ce6ccc9280321c032fc0f (diff)
work started on field interface --> inheritcance structure
Diffstat (limited to 'src/client/views/nodes/DataVizBox/DocCreatorMenu/DocCreatorMenu.tsx')
-rw-r--r--src/client/views/nodes/DataVizBox/DocCreatorMenu/DocCreatorMenu.tsx15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/client/views/nodes/DataVizBox/DocCreatorMenu/DocCreatorMenu.tsx b/src/client/views/nodes/DataVizBox/DocCreatorMenu/DocCreatorMenu.tsx
index d45e11f95..079d222d3 100644
--- a/src/client/views/nodes/DataVizBox/DocCreatorMenu/DocCreatorMenu.tsx
+++ b/src/client/views/nodes/DataVizBox/DocCreatorMenu/DocCreatorMenu.tsx
@@ -399,16 +399,19 @@ export class DocCreatorMenu extends ObservableReactComponent<FieldViewProps> {
testTemplate = async () => {
+ const obj = new DocumentOptions();
+ console.log(Object.entries(obj)[1][0]);
+
//console.log(this.templateManager.templates)
- const mainCollection = this._dataViz?.DocumentView?.().containerViewPath?.().lastElement()?.ComponentView as CollectionFreeFormView;
+ // const mainCollection = this._dataViz?.DocumentView?.().containerViewPath?.().lastElement()?.ComponentView as CollectionFreeFormView;
- this.templateManager.templates.forEach(template => {
- const doc = template.mainField.renderedDoc();
- mainCollection.addDocument(doc);
- })
+ // this.templateManager.templates.forEach(template => {
+ // const doc = template.mainField.renderedDoc();
+ // mainCollection.addDocument(doc);
+ // })
- this.forceUpdate();
+ // this.forceUpdate();
// try {
// const res = await gptImageCall('Image of panda eating a cookie');