aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/chatbot/chatboxcomponents
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2024-11-22 10:27:33 -0500
committerbobzel <zzzman@gmail.com>2024-11-22 10:27:33 -0500
commit89424e0a8efc6cf3364a2fd1ffc85c9d0d837453 (patch)
tree9f0bb770707b2e4239c0618d7435976bcc1c0f16 /src/client/views/nodes/chatbot/chatboxcomponents
parent7b38bbc4d845fa524e8310a0ec05b0e776b47c82 (diff)
added initial Firefly endpoint and hanged smartDrawHandler to generate an image and an svg.
Diffstat (limited to 'src/client/views/nodes/chatbot/chatboxcomponents')
-rw-r--r--src/client/views/nodes/chatbot/chatboxcomponents/ChatBox.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/nodes/chatbot/chatboxcomponents/ChatBox.tsx b/src/client/views/nodes/chatbot/chatboxcomponents/ChatBox.tsx
index a61705250..3ef6bdd8b 100644
--- a/src/client/views/nodes/chatbot/chatboxcomponents/ChatBox.tsx
+++ b/src/client/views/nodes/chatbot/chatboxcomponents/ChatBox.tsx
@@ -431,7 +431,7 @@ export class ChatBox extends ViewBoxAnnotatableComponent<FieldViewProps>() {
doc = Docs.Create.FunctionPlotDocument([], options);
break;
case 'dataviz':
- case 'data_viz':
+ case 'data_viz': {
const { fileUrl, id } = await Networking.PostToServer('/createCSV', {
filename: (options.title as string).replace(/\s+/g, '') + '.csv',
data: data,
@@ -439,6 +439,7 @@ export class ChatBox extends ViewBoxAnnotatableComponent<FieldViewProps>() {
doc = Docs.Create.DataVizDocument(fileUrl, { ...options, text: RTFCast(data) });
this.addCSVForAnalysis(doc, id);
break;
+ }
case 'chat':
doc = Docs.Create.ChatDocument(options);
break;