Skip to content

Commit

Permalink
fixed updatedmessages const error
Browse files Browse the repository at this point in the history
  • Loading branch information
jackschedel committed Apr 26, 2023
1 parent 3610b3b commit 26f2804
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Chat/ChatContent/Message/View/EditView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const EditView = ({
const updatedChats: ChatInterface[] = JSON.parse(
JSON.stringify(useStore.getState().chats)
);
const updatedMessages = updatedChats[currentChatIndex].messages;
let updatedMessages = updatedChats[currentChatIndex].messages;
if (sticky) {
if (_content !== '') {
updatedMessages.push({ role: inputRole, content: _content });
Expand Down

0 comments on commit 26f2804

Please sign in to comment.