Skip to content

Commit

Permalink
Fix file preview
Browse files Browse the repository at this point in the history
  • Loading branch information
pontusab committed Dec 16, 2024
1 parent 8bb6f50 commit ddef9c0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/dashboard/src/components/attachments.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,10 @@ export function Attachments({ prefix, data, onUpload }: Props) {
};

const handleOnSelectFile = (file) => {
const filename = stripSpecialCharacters(file.name);

const item = {
name: file.name,
name: filename,
size: file.data.size,
type: file.data.content_type,
path: file.data.file_path,
Expand Down

0 comments on commit ddef9c0

Please sign in to comment.