Web: Files : Home : Fixed MediaViewer collection with selectors

This commit is contained in:
Ilya Oleshko 2020-10-12 16:40:11 +03:00
parent 577fc5ac70
commit cdaef9e76f

View File

@ -1338,13 +1338,9 @@ class SectionBodyContent extends React.Component {
var playlist = [];
let id = 0;
if (files) {
files.forEach(function (file, i, files) {
if (
isImage(file.fileExst) ||
isSound(file.fileExst) ||
isVideo(file.fileExst)
) {
if (items) {
items.forEach(function (file, i, files) {
if (file.canOpenPlayer) {
playlist.push({
id: id,
fileId: file.id,