summaryrefslogtreecommitdiff
path: root/program/js
diff options
context:
space:
mode:
Diffstat (limited to 'program/js')
-rw-r--r--program/js/list.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/js/list.js b/program/js/list.js
index 2ea4d2190..dafc9eb66 100644
--- a/program/js/list.js
+++ b/program/js/list.js
@@ -1065,7 +1065,7 @@ get_selection: function(deep)
if (deep !== false && res.length) {
for (var uid, uids, i=0, len=res.length; i<len; i++) {
uid = res[i];
- if (this.rows[uid].has_children && !this.rows[uid].expanded) {
+ if (this.rows[uid] && this.rows[uid].has_children && !this.rows[uid].expanded) {
uids = this.row_children(uid);
for (var j=0, uids_len=uids.length; j<uids_len; j++) {
uid = uids[j];