From 9302a9faaa5a75c33314befb3f8e0f414e9d886b Mon Sep 17 00:00:00 2001 From: Puniko Date: Thu, 29 Dec 2022 00:08:19 +0100 Subject: [PATCH] replace filter with some --- packages/client/src/components/media-list.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/client/src/components/media-list.vue b/packages/client/src/components/media-list.vue index 247f39817..8d82080e3 100644 --- a/packages/client/src/components/media-list.vue +++ b/packages/client/src/components/media-list.vue @@ -130,9 +130,9 @@ const previewable = (file: foundkey.entities.DriveFile): boolean => { }; const isModule = (file: foundkey.entities.DriveFile): boolean => { - return FILE_EXT_TRACKER_MODULES.filter((ext) => { + return FILE_EXT_TRACKER_MODULES.some((ext) => { return file.name.toLowerCase().endsWith("." + ext); - }).length > 0; + }); };