Error message included on error popup when sending chat

This commit is contained in:
Lucas Eduardo 2023-03-31 14:51:28 -03:00
commit fc8dc87022

View file

@ -103,7 +103,7 @@ export default function Chat({ flow, reactFlowInstance }: ChatType) {
setLockChat(false); setLockChat(false);
}) })
.catch((error) => { .catch((error) => {
setErrorData({ title: error.message ?? "unknow error" }); setErrorData({ title: error.message ?? "Unknown Error", list: [error.response.data.detail]});
setLockChat(false); setLockChat(false);
}); });
} else { } else {