From 19e58cec946c2f68d8acb72056130423443ea9b5 Mon Sep 17 00:00:00 2001 From: ansuz Date: Thu, 28 Sep 2017 10:23:48 +0200 Subject: [PATCH] prevent typeError --- www/common/userObject.js | 1 + 1 file changed, 1 insertion(+) diff --git a/www/common/userObject.js b/www/common/userObject.js index ddacbb806..058b64fb5 100644 --- a/www/common/userObject.js +++ b/www/common/userObject.js @@ -425,6 +425,7 @@ define([ getFiles([FILES_DATA]).forEach(function (id) { var data = allFilesList[id]; + if (!data) { return; } if (Array.isArray(data.tags) && containsSearchedTag(data.tags)) { res.push(id); } else