From 990e24a660dc52d02952c367a104037003437059 Mon Sep 17 00:00:00 2001 From: Willy Douhard Date: Wed, 8 Jan 2025 11:17:35 +0100 Subject: [PATCH] fix: attachment should not show if not enabled (#1644) --- frontend/src/components/chat/MessageComposer/UploadButton.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/chat/MessageComposer/UploadButton.tsx b/frontend/src/components/chat/MessageComposer/UploadButton.tsx index 675b41ee90..dab8ba345f 100644 --- a/frontend/src/components/chat/MessageComposer/UploadButton.tsx +++ b/frontend/src/components/chat/MessageComposer/UploadButton.tsx @@ -35,7 +35,7 @@ export const UploadButton = ({ if (!upload) return null; const { getRootProps, getInputProps } = upload; - if (!config?.features.spontaneous_file_upload) return null; + if (!config?.features.spontaneous_file_upload?.enabled) return null; return (