Fix small bug on sprint taskboard

stable
Jesús Espino 2017-04-06 11:19:33 +02:00
parent 44e9a3f099
commit 4b8271000a
1 changed files with 2 additions and 1 deletions

View File

@ -24,7 +24,8 @@ class CardController
return @.zoom.indexOf(name) != -1 return @.zoom.indexOf(name) != -1
hasTasks: () -> hasTasks: () ->
return @.item.getIn(['model', 'tasks']).size > 0 tasks = @.item.getIn(['model', 'tasks'])
return tasks and tasks.size > 0
hasVisibleAttachments: () -> hasVisibleAttachments: () ->
return @.item.get('images').size > 0 return @.item.get('images').size > 0