From 42bc905c16d1c01cbf24f773d2d5224ccdbeba78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Manelli?= Date: Thu, 1 Feb 2018 12:43:44 -0300 Subject: Remove unused hack --- client/components/lists/list.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'client/components') diff --git a/client/components/lists/list.js b/client/components/lists/list.js index ce18ce14..e922a3fd 100644 --- a/client/components/lists/list.js +++ b/client/components/lists/list.js @@ -18,9 +18,7 @@ BlazeComponent.extendComponent({ // callback, we basically solve all issues related to reactive updates. A // comment below provides further details. onRendered() { - let boardComponent = this.parentComponent().parentComponent(); - if (!boardComponent) - boardComponent = this.parentComponent(); + const boardComponent = this.parentComponent().parentComponent(); const itemsSelector = '.js-minicard:not(.placeholder, .js-card-composer)'; const $cards = this.$('.js-minicards'); $cards.sortable({ -- cgit v1.2.3-1-g7c22