From 04745f0c2fe83f044032713e1864c5ac00d38ac9 Mon Sep 17 00:00:00 2001 From: Nicu Tofan Date: Mon, 25 Jun 2018 22:01:02 +0300 Subject: implement getDefaultSwimline for boards --- client/components/cards/subtasks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client/components/cards/subtasks.js') diff --git a/client/components/cards/subtasks.js b/client/components/cards/subtasks.js index 087824f7..335eba36 100644 --- a/client/components/cards/subtasks.js +++ b/client/components/cards/subtasks.js @@ -16,7 +16,7 @@ BlazeComponent.extendComponent({ const crtBoard = Boards.findOne(card.boardId); const targetBoard = crtBoard.getDefaultSubtasksBoard(); const listId = targetBoard.getDefaultSubtasksListId(); - const swimlaneId = Swimlanes.findOne({boardId: targetBoard._id})._id; + const swimlaneId = targetBoard.getDefaultSwimline()._id; if (title) { const _id = Cards.insert({ -- cgit v1.2.3-1-g7c22