Update alert messages for ChatOutput and Component in flow

This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-03-09 22:24:15 -03:00
commit 23fe37326b
2 changed files with 2 additions and 2 deletions

View file

@ -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!";

View file

@ -264,7 +264,7 @@ export function buildTweaks(flow: FlowType) {
export function validateNode(node: NodeType, edges: Edge[]): Array<string> {
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!",
];
}