Update alert messages for ChatOutput and Component in flow
This commit is contained in:
parent
1b0322d1e2
commit
23fe37326b
2 changed files with 2 additions and 2 deletions
|
|
@ -40,7 +40,7 @@ export const COMPONENTS_ERROR_ALERT = "Error getting components.";
|
||||||
|
|
||||||
// NOTICE
|
// NOTICE
|
||||||
export const NOCHATOUTPUT_NOTICE_ALERT =
|
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 =
|
export const API_WARNING_NOTICE_ALERT =
|
||||||
"Warning: Critical data, JSON file may include API keys.";
|
"Warning: Critical data, JSON file may include API keys.";
|
||||||
export const COPIED_NOTICE_ALERT = "API Key copied!";
|
export const COPIED_NOTICE_ALERT = "API Key copied!";
|
||||||
|
|
|
||||||
|
|
@ -264,7 +264,7 @@ export function buildTweaks(flow: FlowType) {
|
||||||
export function validateNode(node: NodeType, edges: Edge[]): Array<string> {
|
export function validateNode(node: NodeType, edges: Edge[]): Array<string> {
|
||||||
if (!node.data?.node?.template || !Object.keys(node.data.node.template)) {
|
if (!node.data?.node?.template || !Object.keys(node.data.node.template)) {
|
||||||
return [
|
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!",
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue