From c54d3f4338d16c907273762758853a183b543630 Mon Sep 17 00:00:00 2001 From: bobzel Date: Mon, 17 Mar 2025 01:35:46 -0400 Subject: hopefully last changes doc creator templates. --- .../views/nodes/DataVizBox/DocCreatorMenu/DocCreatorMenu.tsx | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (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 444f0a29d..3253cefb9 100644 --- a/src/client/views/nodes/DataVizBox/DocCreatorMenu/DocCreatorMenu.tsx +++ b/src/client/views/nodes/DataVizBox/DocCreatorMenu/DocCreatorMenu.tsx @@ -616,18 +616,15 @@ export class DocCreatorMenu extends ObservableReactComponent } else { this._dataViz?.updateColDefaults(); - const cols = this.fieldsInfos; - templates.push(...this.templateManager.getValidTemplates(cols)); + templates.push(...this.templateManager.getValidTemplates(this.fieldsInfos)); - const assignments: [Template, { [field: number]: Col }][] = await this.assignColsToFields(templates, cols); + const assignments = await this.assignColsToFields(templates, this.fieldsInfos); - const renderedTemplatePromises: Promise