diff --git a/frontend/src/app-components/attachment/AttachmentThumbnail.tsx b/frontend/src/app-components/attachment/AttachmentThumbnail.tsx index dd2bec72..d844a2a9 100644 --- a/frontend/src/app-components/attachment/AttachmentThumbnail.tsx +++ b/frontend/src/app-components/attachment/AttachmentThumbnail.tsx @@ -103,8 +103,8 @@ const AttachmentThumbnail: FC = ({ color="inherit" variant="contained" startIcon={} - onClick={async (e) => { - onChange && onChange(null); + onClick={(e) => { + onChange?.(null); e.preventDefault(); e.stopPropagation(); }}