From fcf51abc81da6eecbf8a31812b7cd5b2865999c4 Mon Sep 17 00:00:00 2001 From: Danny Banks Date: Mon, 7 Oct 2024 14:43:36 -0700 Subject: [PATCH] fix(ai-conversation): allow attachments on amplify component (#5872) --- .changeset/silly-knives-wash.md | 5 +++++ .../src/components/AIConversation/AIConversation.tsx | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/silly-knives-wash.md diff --git a/.changeset/silly-knives-wash.md b/.changeset/silly-knives-wash.md new file mode 100644 index 00000000000..d424e51e2cc --- /dev/null +++ b/.changeset/silly-knives-wash.md @@ -0,0 +1,5 @@ +--- +"@aws-amplify/ui-react-ai": patch +--- + +fix(ai-conversation): allow attachments to actually work on amplify component diff --git a/packages/react-ai/src/components/AIConversation/AIConversation.tsx b/packages/react-ai/src/components/AIConversation/AIConversation.tsx index a5d74c0944a..200dd604c62 100644 --- a/packages/react-ai/src/components/AIConversation/AIConversation.tsx +++ b/packages/react-ai/src/components/AIConversation/AIConversation.tsx @@ -63,6 +63,7 @@ function AIConversationBase({ ...controls, }, displayText, + allowAttachments, }); const providerProps = { @@ -73,7 +74,6 @@ function AIConversationBase({ ...avatars, }, isLoading, - allowAttachments, }; return (