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);
})
.catch((error) => {
setErrorData({ title: error.message ?? "unknow error" });
setErrorData({ title: error.message ?? "Unknown Error", list: [error.response.data.detail]});
setLockChat(false);
});
} else {