Skip to content

Commit

Permalink
Hide Stop Generating button when no messages (#921)
Browse files Browse the repository at this point in the history
Co-authored-by: Ian Seabock (Centific Technologies Inc) <[email protected]>
  • Loading branch information
iseabock and Ian Seabock (Centific Technologies Inc) committed Jun 13, 2024
1 parent 9323f6b commit ee58110
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion frontend/src/pages/chat/Chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -825,7 +825,7 @@ const Chat = () => {
)}

<Stack horizontal className={styles.chatInput}>
{isLoading && (
{isLoading && messages.length > 0 && (
<Stack
horizontal
className={styles.stopGeneratingContainer}
Expand Down
Loading

0 comments on commit ee58110

Please sign in to comment.