implement getDefaultSwimline for boards

This commit is contained in:
Nicu Tofan 2018-06-25 22:01:02 +03:00
parent aead18eb58
commit 04745f0c2f
No known key found for this signature in database
GPG key ID: 7EE66E95E64FD0B7
4 changed files with 15 additions and 11 deletions

View file

@ -46,7 +46,7 @@ BlazeComponent.extendComponent({
if (boardView === 'board-view-swimlanes')
swimlaneId = this.parentComponent().parentComponent().data()._id;
else if (boardView === 'board-view-lists')
swimlaneId = Swimlanes.findOne({boardId})._id;
swimlaneId = this.data().board().getDefaultSwimline()._id;
if (title) {
const _id = Cards.insert({