diff --git a/packages/design-system/src/components/AskAssistantChat/AskAssistantChat.stories.ts b/packages/design-system/src/components/AskAssistantChat/AskAssistantChat.stories.ts index d87e41e1ed..5d3601c5c6 100644 --- a/packages/design-system/src/components/AskAssistantChat/AskAssistantChat.stories.ts +++ b/packages/design-system/src/components/AskAssistantChat/AskAssistantChat.stories.ts @@ -21,7 +21,7 @@ const Template: StoryFn = (args, { argTypes }) => ({ components: { AskAssistantChat, }, - template: '
- Hi Max! Here is my top solution to fix the error in your - - Transform data - - node👇 -
- ++ Hi Max! Here is my top solution to fix the error in your + + Transform data + + node👇 +
+ +- Hi Max! Here is my top solution to fix the error in your - - Transform data - - node👇 -
- - -+ Hi Max! Here is my top solution to fix the error in your + + Transform data + + node👇 +
-- Give it to me - - ignore this markdown - -
- - - - -- Solution steps: -
++ Give it to me + + ignore this markdown + +
+ -+ Solution steps: +
-- Hi Max! Here is my top solution to fix the error in your - - Transform data - - node👇 -
- - -+ Hi Max! Here is my top solution to fix the error in your + + Transform data + + node👇 +
+ + +- Hi Max! Here is my top solution to fix the error in your - - Transform data - - node👇 -
- - -
- node.on('input', function(msg) {
-
-
-if (msg.seed) { dummyjson.seed = msg.seed; }
-
-
-try {
-
-
-var value = dummyjson.parse(node.template, {mockdata: msg});
-
-
-if (node.syntax === 'json') {
-
-
-try { value = JSON.parse(value); }
-
-
-catch(e) { node.error(RED._('datagen.errors.json-error')); }
-
-
-}
-
-
-if (node.fieldType === 'msg') {
-
-
-RED.util.setMessageProperty(msg,node.field,value);
-
-
-}
-
-
-else if (node.fieldType === 'flow') {
-
-
-node.context().flow.set(node.field,value);
-
-
-}
-
-
-else if (node.fieldType === 'global') {
-
-
-node.context().global.set(node.field,value);
-
-
-}
-
-
-node.send(msg);
-
-
-}
-
-
-catch(e) {
+ Hi Max! Here is my top solution to fix the error in your
+
+ Transform data
+
+ node👇
+ node.on('input', function(msg) {
+
+
+if (msg.seed) { dummyjson.seed = msg.seed; }
+
+
+try {
+
+
+var value = dummyjson.parse(node.template, {mockdata: msg});
+
+
+if (node.syntax === 'json') {
+
+
+try { value = JSON.parse(value); }
+
+
+catch(e) { node.error(RED._('datagen.errors.json-error')); }
+
+
+}
+
+
+if (node.fieldType === 'msg') {
+
+
+RED.util.setMessageProperty(msg,node.field,value);
+
+
+}
+
+
+else if (node.fieldType === 'flow') {
+
+
+node.context().flow.set(node.field,value);
+
+
+}
+
+
+else if (node.fieldType === 'global') {
+
+
+node.context().global.set(node.field,value);
+
+
+}
+
+
+node.send(msg);
+
+
+}
+
+
+catch(e) {
+
- Hi Max! Here is my top solution to fix the error in your - - Transform data - - node👇 -
- ++ Hi Max! Here is my top solution to fix the error in your + + Transform data + + node👇 +
+ +