diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index ca5d699f6..6417a98a4 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -179,6 +179,7 @@ define([ return k.indexOf(hash) === 0; }); + if (!toRemove.length) { return; } Store.removebatch(toRemove, function (err, data) { cb(err, data); });