Skip to content

Commit

Permalink
Merge pull request #264 from FlowiseAI/bugfix/Error-Message-Override
Browse files Browse the repository at this point in the history
Bugfix/Override custom error message
  • Loading branch information
HenryHengZJ authored Oct 8, 2024
2 parents 3756026 + 6eab2a8 commit 4c57e7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/web.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/components/Bot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ export const Bot = (botProps: BotProps & { class?: string }) => {
const updateErrorMessage = (errorMessage: string) => {
setMessages((prevMessages) => {
const allMessages = [...cloneDeep(prevMessages)];
allMessages.push({ message: errorMessage, type: 'apiMessage' });
allMessages.push({ message: props.errorMessage || errorMessage, type: 'apiMessage' });
addChatMessage(allMessages);
return allMessages;
});
Expand Down

0 comments on commit 4c57e7e

Please sign in to comment.