Fix cannot duplicate same profile more than once
This commit is contained in:
parent
fc784ffeb1
commit
17198e53eb
|
@ -238,8 +238,8 @@ extension ProfileManager {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
let copy = source
|
let copy = source
|
||||||
.renamedUniquely(withLastUpdate: false)
|
|
||||||
.withNewId()
|
.withNewId()
|
||||||
|
.renamedUniquely(withLastUpdate: false)
|
||||||
|
|
||||||
saveProfile(copy, isActive: nil)
|
saveProfile(copy, isActive: nil)
|
||||||
return copy
|
return copy
|
||||||
|
|
Loading…
Reference in New Issue