summaryrefslogtreecommitdiffstats
path: root/client/components/lists
diff options
context:
space:
mode:
authorMaxime Quandalle <maxime@quandalle.com>2016-02-13 03:12:01 +0100
committerMaxime Quandalle <maxime@quandalle.com>2016-03-17 16:26:14 +0100
commit90601eacae616c3bca46d6dcb643aa94b1fd05c6 (patch)
tree764e2aa0b91e392cdb1ef9faa92ff6c9ffe7efd1 /client/components/lists
parentb8aefedcc3dcaf62d1b45f1e4ffb1dc4fdc55f63 (diff)
downloadwekan-90601eacae616c3bca46d6dcb643aa94b1fd05c6.tar.gz
wekan-90601eacae616c3bca46d6dcb643aa94b1fd05c6.tar.bz2
wekan-90601eacae616c3bca46d6dcb643aa94b1fd05c6.zip
Upgrade ESLint to v2
This commit also tweak the code style following backward-incompatible v2 rules.
Diffstat (limited to 'client/components/lists')
-rw-r--r--client/components/lists/listBody.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/client/components/lists/listBody.js b/client/components/lists/listBody.js
index 907c2157..34c2dcd6 100644
--- a/client/components/lists/listBody.js
+++ b/client/components/lists/listBody.js
@@ -208,11 +208,12 @@ BlazeComponent.extendComponent({
label.color.indexOf(term) > -1) {
return label;
}
+ return null;
}));
},
template(label) {
return Blaze.toHTMLWithData(Template.autocompleteLabelLine, {
- hasNoName: !Boolean(label.name),
+ hasNoName: !label.name,
colorName: label.color,
labelName: label.name || label.color,
});
@@ -233,6 +234,7 @@ BlazeComponent.extendComponent({
evt.stopPropagation();
return commands.KEY_ENTER;
}
+ return null;
},
});
},