Creating a new relation for a type results in a duplicate

Describe the bug
When creating a new relation for a Type template, if I choose the relation type “Object” and limit the object types, this results in automatic creation of a relation without pressing Enter. Pressing Enter after that creates a duplicate of a Relation, with no way of deleting it.

To Reproduce

  1. Create a new Type
  2. Press the “New Relation” button
  3. Specify the relation type “Object”
  4. press “Limit object Types”
  5. Specify an object Type
  6. Notice that a relation has already been created
  7. Press Enter or “Create” button
  8. Notice a duplicate relation has been created

Expected behavior
I expect Anytype to not create a relation until I press Enter or the “Create” button.

System Information:

  • OS: macOS 12.3.1
  • Device Manufacturer/Model: Macbook Pro 2015 13" with Touchbar
  • Anytype Version: 0.25.0

Additional context
This bug, together with the inability to delete Types and Relations, makes creating new Relations very frustrating, as I always forget about this bug and create duplicate Relations.