diff --git a/packages/client/src/components/media-list.vue b/packages/client/src/components/media-list.vue index c2643b23e..3e86ab0d0 100644 --- a/packages/client/src/components/media-list.vue +++ b/packages/client/src/components/media-list.vue @@ -130,9 +130,7 @@ const previewable = (file: foundkey.entities.DriveFile): boolean => { }; const isModule = (file: foundkey.entities.DriveFile): boolean => { - return FILE_TYPE_TRACKER_MODULES.some((type) => { - return file.type === type; - }) || FILE_EXT_TRACKER_MODULES.some((ext) => { + return FILE_TYPE_TRACKER_MODULES.includes(file.type) || FILE_EXT_TRACKER_MODULES.some((ext) => { return file.name.toLowerCase().endsWith("." + ext); }); };