Skip to content

Commit

Permalink
fix: attachment should not show if not enabled (#1644)
Browse files Browse the repository at this point in the history
  • Loading branch information
willydouhard authored Jan 8, 2025
1 parent 2b56d08 commit 990e24a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<TooltipProvider>
Expand Down

0 comments on commit 990e24a

Please sign in to comment.