Adding missed file for previous commit
> Stops saving the raw core data objects in view models and makes them optional in the constructor.
This commit is contained in:
@@ -50,7 +50,7 @@ class SkillViewModel: ObservableObject, Comparable, Hashable, Identifiable {
|
||||
skill.wrappedProficiency = proficiency
|
||||
}
|
||||
|
||||
init(_ rawSkill: Skill?) {
|
||||
init(_ rawSkill: Skill? = nil) {
|
||||
if (rawSkill != nil) {
|
||||
_name = rawSkill!.name ?? ""
|
||||
_abilityScore = AbilityScore(rawValue: rawSkill!.abilityScoreName ?? "") ?? .strength
|
||||
|
||||
Reference in New Issue
Block a user