forked from FoundKeyGang/FoundKey
replace filter with some
This commit is contained in:
parent
bffd15daed
commit
9302a9faaa
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
});
|
||||
};
|
||||
|
||||
</script>
|
||||
|
|
Loading…
Reference in a new issue