Don't store in the drive pads without a hash

This commit is contained in:
yflory
2017-05-05 11:55:19 +02:00
parent f329726fa4
commit 5a5b02b82b
2 changed files with 12 additions and 3 deletions

View File

@@ -883,6 +883,11 @@ define([
toClean.push(el);
return;
}
if (!el.href) {
debug("Rmoving an element in filesData with a missing href.", el);
toClean.push(el);
return;
}
if (rootFiles.indexOf(el.href) === -1) {
debug("An element in filesData was not in ROOT, TEMPLATE or TRASH.", el);
var name = el.title || NEW_FILE_NAME;