Skip to content
Snippets Groups Projects
Commit 737b7c49 authored by Robert Havrisciuc's avatar Robert Havrisciuc
Browse files

fixed crash in attributes screen

parent d59ae558
Branches merge_events
No related tags found
No related merge requests found
......@@ -42,8 +42,8 @@ class ParticipantsCell: UICollectionViewCell {
let activity = TemporaryEvent.shared.activities.first { (activity) -> Bool in
return activity.id == _parent.activity.id
}
if let attribute = activity?.attribute, _parent.temporaryAttribute.partners == nil {
selectItem(attribute.partners, titles: titles)
if let attribute = activity?.attribute, let title = attribute.partners, _parent.temporaryAttribute.partners == nil {
selectItem(title, titles: titles)
} else if _parent.temporaryAttribute.partners != nil {
selectItem(_parent.temporaryAttribute.partners, titles: titles)
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment