summaryrefslogtreecommitdiffstats
path: root/client/config/blazeHelpers.js
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/config/blazeHelpers.js
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/config/blazeHelpers.js')
-rw-r--r--client/config/blazeHelpers.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/client/config/blazeHelpers.js b/client/config/blazeHelpers.js
index f3a1757f..ef075907 100644
--- a/client/config/blazeHelpers.js
+++ b/client/config/blazeHelpers.js
@@ -2,6 +2,8 @@ Blaze.registerHelper('currentBoard', () => {
const boardId = Session.get('currentBoard');
if (boardId) {
return Boards.findOne(boardId);
+ } else {
+ return null;
}
});
@@ -9,6 +11,8 @@ Blaze.registerHelper('currentCard', () => {
const cardId = Session.get('currentCard');
if (cardId) {
return Cards.findOne(cardId);
+ } else {
+ return null;
}
});