Merge remote-tracking branch 'origin/websocket' into chat_and_cache

This commit is contained in:
Gabriel Almeida 2023-04-26 01:05:43 -03:00
commit 1b8f4ce2bd
2 changed files with 4 additions and 4 deletions

View file

@ -28,7 +28,7 @@ export default function ChatMessage({ chat }: { chat: ChatMessageType }) {
</div>
{!chat.isSend ? (
<div className="w-full text-start flex items-center">
<div className="w-full relative text-start inline-block text-gray-600 text-sm font-normal">
<div className=" relative text-start inline-block text-gray-600 text-sm font-normal">
{hidden && chat.thought && chat.thought !== "" && (
<div
onClick={() => setHidden((prev) => !prev)}

View file

@ -115,9 +115,9 @@ export default function ChatModal({
console.log(data);
}
} catch (error) {
setErrorData({ title: event.data });
if (newWs.readyState === newWs.CLOSED) {
window.alert(error);
if(event.data!=="Error: 1005"){
setErrorData({ title: event.data });
}
}
};