prevent typeError

pull/1/head
ansuz 7 years ago
parent 0df9e5ace0
commit 19e58cec94

@ -425,6 +425,7 @@ define([
getFiles([FILES_DATA]).forEach(function (id) { getFiles([FILES_DATA]).forEach(function (id) {
var data = allFilesList[id]; var data = allFilesList[id];
if (!data) { return; }
if (Array.isArray(data.tags) && containsSearchedTag(data.tags)) { if (Array.isArray(data.tags) && containsSearchedTag(data.tags)) {
res.push(id); res.push(id);
} else } else

Loading…
Cancel
Save