mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-09 09:27:03 +03:00
Revamp array filtering
Replaced fakeMd5 with new Jua.randomId Cleanup more code
This commit is contained in:
parent
9992b20163
commit
c3a2da65df
23 changed files with 130 additions and 289 deletions
|
|
@ -301,7 +301,7 @@ export const File = {
|
|||
if (Array.isNotEmpty(data)) {
|
||||
let icons = data
|
||||
.map(item => item ? File.getIconClass(File.getExtension(item[0]), item[1])[0] : '')
|
||||
.filter((value, index, self) => value && self.indexOf(value) == index);
|
||||
.validUnique();
|
||||
|
||||
return (icons && 1 === icons.length && 'icon-file' !== icons[0])
|
||||
? icons[0]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue