summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/client.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/web/client.js b/web/client.js
index 35f26bd..9790985 100644
--- a/web/client.js
+++ b/web/client.js
@@ -303,8 +303,9 @@ $(function() {
function reject() { def.reject(); }
var tasks = _.filter(
- _.pluck(_.values(invalid), 1),
- function(d) { return d.state() == "pending"; }
+ _.pluck(_.values(invalid), 1), function(d) {
+ return d && d.state() == "pending";
+ }
);
if (tasks.length)