Skip to content

Commit

Permalink
Make sure the Tool accordion is closed if it is not the last message (#…
Browse files Browse the repository at this point in the history
…9826)

* fix

* add changeset

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
  • Loading branch information
freddyaboulton and gradio-pr-bot authored Oct 31, 2024
1 parent 8305ff8 commit 69acfeb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changeset/slow-baboons-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@gradio/chatbot": patch
"gradio": patch
---

fix:Make sure the Tool accordion is closed if it is not the last message
2 changes: 1 addition & 1 deletion js/chatbot/shared/Message.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
{#if message.metadata.title}
<MessageBox
title={message.metadata.title}
expanded={is_last_bot_message(messages, value)}
expanded={is_last_bot_message([message], value)}
>
<Markdown
message={message.content}
Expand Down

0 comments on commit 69acfeb

Please sign in to comment.