We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 484d495 commit cad9b20Copy full SHA for cad9b20
client/components/swimlanes/swimlanes.js
@@ -3,12 +3,10 @@ const { calculateIndex } = Utils;
3
function currentCardIsInThisList(listId, swimlaneId) {
4
const currentCard = Cards.findOne(Session.get('currentCard'));
5
const currentUser = Meteor.user();
6
- if (currentUser.profile.boardView === 'board-view-lists')
7
- return currentCard && currentCard.listId === listId;
8
- else if (currentUser.profile.boardView === 'board-view-swimlanes')
+ if (currentUser && currentUser.profile.boardView === 'board-view-swimlanes')
9
return currentCard && currentCard.listId === listId && currentCard.swimlaneId === swimlaneId;
10
else
11
- return false;
+ return currentCard && currentCard.listId === listId;
12
}
13
14
function initSortable(boardComponent, $listsDom) {
0 commit comments