Skip to content

Commit

Permalink
Update manager.blade.php
Browse files Browse the repository at this point in the history
Under Windows, the 'Thumbs.db' files have a file.type = null, which goes to an error for the test if (file.type.includes(type))
We exclude them to display
  • Loading branch information
toto975 authored Feb 29, 2024
1 parent 36b9977 commit 8e8805b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion resources/views/media/manager.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,11 @@
},
filter: function(file) {
if (this.allowedTypes.length > 0) {
if (file.type != 'folder') {
//////////////////////////////
/// Under Windows, the 'Thumbs.db' files have a file.type = null, which goes to an error for the test if (file.type.includes(type))
/// We exclude them to display
//////////////////////////////
if (file.type != 'folder' && file.name != 'Thumbs.db') {
for (var i = 0, type; type = this.allowedTypes[i]; i++) {
if (file.type.includes(type)) {
return true;
Expand Down

0 comments on commit 8e8805b

Please sign in to comment.