fix: clean mapping
This commit is contained in:
@@ -228,6 +228,7 @@ class Collection(Generic[T]):
|
|||||||
else:
|
else:
|
||||||
# merge only if the two objects are not the same
|
# merge only if the two objects are not the same
|
||||||
if existing_object.id == __object.id:
|
if existing_object.id == __object.id:
|
||||||
|
exit()
|
||||||
return
|
return
|
||||||
|
|
||||||
append_to._unmap_element(existing_object)
|
append_to._unmap_element(existing_object)
|
||||||
|
|||||||
Reference in New Issue
Block a user