From 23fe37326bbea84234f594c0b6e6e50c17665d62 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Sat, 9 Mar 2024 22:24:15 -0300 Subject: [PATCH] Update alert messages for ChatOutput and Component in flow --- src/frontend/src/constants/alerts_constants.tsx | 2 +- src/frontend/src/utils/reactflowUtils.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/src/constants/alerts_constants.tsx b/src/frontend/src/constants/alerts_constants.tsx index 0710e3d00..c3e3ba946 100644 --- a/src/frontend/src/constants/alerts_constants.tsx +++ b/src/frontend/src/constants/alerts_constants.tsx @@ -40,7 +40,7 @@ export const COMPONENTS_ERROR_ALERT = "Error getting components."; // NOTICE export const NOCHATOUTPUT_NOTICE_ALERT = - "There is no ChatOutput node in the flow."; + "There is no ChatOutput Component in the flow."; export const API_WARNING_NOTICE_ALERT = "Warning: Critical data, JSON file may include API keys."; export const COPIED_NOTICE_ALERT = "API Key copied!"; diff --git a/src/frontend/src/utils/reactflowUtils.ts b/src/frontend/src/utils/reactflowUtils.ts index f99efb481..012b0203a 100644 --- a/src/frontend/src/utils/reactflowUtils.ts +++ b/src/frontend/src/utils/reactflowUtils.ts @@ -264,7 +264,7 @@ export function buildTweaks(flow: FlowType) { export function validateNode(node: NodeType, edges: Edge[]): Array { if (!node.data?.node?.template || !Object.keys(node.data.node.template)) { return [ - "We've noticed a potential issue with a node in the flow. Please review it and, if necessary, submit a bug report with your exported flow file. Thank you for your help!", + "We've noticed a potential issue with a Component in the flow. Please review it and, if necessary, submit a bug report with your exported flow file. Thank you for your help!", ]; }