uwazi icon indicating copy to clipboard operation
uwazi copied to clipboard

Icons of relationships are not updated on denormalized entities

Open mfacar opened this issue 2 years ago • 0 comments

Describe the bug If a relationship exists previous to adding an icon in the related entity, the icon is only visible after saving the entity with the relationship property.

To Reproduce

  1. Create two templates, the first one with a relationship property that points to the other template (marked as Show in cards).
  2. Create one entity for each template
  3. Edit the entity belonging to the target template adding an icon to it.
  4. Go to Library/Table view and select the relationship column as visible
  5. The icon is not shown in the column of the relationship
  6. Click on edit and save the entity without any change
  7. The icon is present next to the name of the related entity
  8. The same is reproducible in Cards view when the relationship property is marked with Show in cards

Expected behavior It should not be needed to save the entity with the relationship in order to see the icon of the related entity

Screenshots Screenshot 2022-09-19 120252

Additional context You can run yarn fixtures and add an icon to Costa Rica, after that check with any entity that has Costa Rica as a related entity.

mfacar avatar Sep 19 '22 21:09 mfacar