exclude ids with invalid lengths from our list of owned documents

pull/1/head
ansuz 3 years ago
parent 59aefef2ad
commit 44688026d6

@ -775,7 +775,10 @@ define([
} }
}); });
} }
return list; return list.filter(function (channel) {
if (typeof(channel) !== 'string') { return; }
return [32, 48].indexOf(channel.length) !== -1;
});
}; };
var removeOwnedPads = function (waitFor) { var removeOwnedPads = function (waitFor) {
// Delete owned pads // Delete owned pads

Loading…
Cancel
Save