biothings / discovery-app

The Data Discovery Engine project by the CD2H Data working-group
http://discovery.biothings.io
Apache License 2.0
4 stars 12 forks source link

Domain duplicated when editing a new property #239

Closed ljgarcia closed 4 months ago

ljgarcia commented 10 months ago

Describe the bug The domain (i.e., namespace) is duplicated when editing a new added property.

To Reproduce Steps to reproduce the behavior:

  1. Create a new type
  2. Add a new property
  3. Edit that new property, the domain will be namespace:NewType
  4. Submit with no changes
  5. Try edition again, the domain will have the namespace multiple times (it gets duplicated every time and edition is attempted)
  6. Removing the duplicated namespace is not possible as the domain field is not editable

Expected behavior The namespace should not be duplicated

Screenshots If applicable, add screenshots to help explain your problem. image

Additional context Add any other context about the problem here.

marcodarko commented 10 months ago

This will be fixed in the next update