Deleting an object type relation without removing the values only hides the relation

Describe the bug
Deleting an object relation without removing its value only hides the relation. After the app is restarted, adding the deleted relation to the same page displays the relation with the already used values prefilled

To Reproduce

  • Go to any page
  • Create a new relation of object type
  • Add an existing page as the value of the new relation
  • Close and reopen the app
  • Open graph view and check the new relation link between the two pages
  • Delete the newly created relation from the page without removing its value
  • Check the page’s relations and confirm that the relation is now hided / deleted
  • Check graph and confirm that the link is now gone
  • Close and reopen the app
  • Check the graph to see that the link is still present
  • Add the same relation to the page and the relation comes prefilled with the existing value to the linked page

Expected behavior
Deleting a relation should remove it from the page and remove any prefilled values as well. i.e, Deleting a relation from a page should cut all its ties with the page. Adding the relation again to the same page should start from a cleanstate without any values prefilled

System Information:

  • OS: Fedora Silverblue
  • Anytype Version: 0.21.1

Additional context
The behaviour was the same in the android app as well. I could not check the graph view in android but the deleted relation when added back came with the previous value in the Android app as well

  • Android Anytype Version: 0.4.0

@lynxlove Thank you for your notice! It has been added to the bug tracker