Skip to content

Commit

Permalink
🐛 fix: fix send button loading on only add user message (lobehub#2774)
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx authored Jun 3, 2024
1 parent 1d2bc0d commit a7f2982
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/store/chat/slices/message/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ export const chatMessage: StateCreator<

// if only add user message, then stop
if (onlyAddUserMessage) {
set({ isCreatingMessage: false }, false, 'creatingMessage/start');
return;
}

Expand Down

0 comments on commit a7f2982

Please sign in to comment.