We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9689bca commit 81f62ffCopy full SHA for 81f62ff
1 file changed
apps/sim/app/workspace/[workspaceId]/files/files.tsx
@@ -36,7 +36,6 @@ import {
36
getFileExtension,
37
getMimeTypeFromExtension,
38
isAudioFileType,
39
- isImageFileType,
40
isVideoFileType,
41
} from '@/lib/uploads/utils/file-utils'
42
import {
@@ -250,7 +249,7 @@ export function Files() {
250
249
if (typeFilter.includes('document') && isSupportedExtension(ext)) return true
251
if (typeFilter.includes('audio') && isAudioFileType(f.type)) return true
252
if (typeFilter.includes('video') && isVideoFileType(f.type)) return true
253
- if (typeFilter.includes('image') && isImageFileType(f.type)) return true
+ if (typeFilter.includes('image') && f.type?.startsWith('image/')) return true
254
return false
255
})
256
}
0 commit comments