Several SO messages like this relate to the same error message, but none of these solutions work. It looks like this might be the case of an erroneous error message.
The code below generates the "Minor membership card link" error to call the card.
Does anyone know why?
func saveUser(user: User) { var userDicts = masterDict["users"] as! [[String:AnyObject]] let newDict = user.getDict() // Replace matching element with <newDict> let replaced = false masterDict["users"] = userDicts.map { if ($0["id"] as String! == user.getId()) { replaced = true return newDict } else { return $0 as [String:AnyObject] } } // If no match found, means must add new user if (!replaced) { userDicts.append(newDict) } }
source share