Skip to content

Commit

Permalink
[fix] bug causing msgs being cleared from UI
Browse files Browse the repository at this point in the history
  • Loading branch information
jorge-menjivar committed Oct 21, 2023
1 parent cbc7d3b commit cdf9789
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ import {
import { FC, memo, useContext, useEffect, useRef, useState } from 'react';

import { useTranslation } from 'next-i18next';
import Image from 'next/image';

import { storageDeleteMessages } from '@/utils/app/storage/messages';

import { Conversation, Message } from '@/types/chat';
import { Message } from '@/types/chat';

import HomeContext from '@/components/Home/home.context';
import { CodeBlock } from '@/components/Markdown/CodeBlock';
Expand All @@ -38,7 +37,7 @@ export const ChatMessage: FC<Props> = memo(
const {
state: {
database,
conversations,
messages,
messageIsStreaming,
selectedConversation,
user,
Expand Down Expand Up @@ -108,7 +107,7 @@ export const ChatMessage: FC<Props> = memo(
database!,
user!,
messagesToBeDeleted,
selectedConversationMessages,
messages,
);
homeDispatch({ field: 'messages', value: updatedMessages });
};
Expand Down

1 comment on commit cdf9789

@vercel
Copy link

@vercel vercel bot commented on cdf9789 Oct 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.