RockefellerArchiveCenter / dimes

Front-end user interface for the online archival discovery at the Rockefeller Archive Center
MIT License
0 stars 1 forks source link

Collapse/expand of collection contents accordion creates duplicate child objects #737

Open HaSistrunk opened 2 months ago

HaSistrunk commented 2 months ago

Describe the bug

Expanding and collapsing collection contents accordion is displaying duplicate child objects of that collection, but only if the user navigates to the collection/object using the minimap.

To reproduce

Steps to reproduce the behavior:

  1. Search for "ping pong diplomacy"
  2. Click on National Committee on United States-China Relations records result
  3. Click on first minimap square
  4. See 2 objects under Series 9
  5. Collapse the Series 9 accordian and then expand it
  6. See that there are now 4 objects displayed that are duplicates of the original 2 objects in the series.
  7. Click on any one of the objects and see that the duplicate objects disappear

*Note that this bug does NOT occur if you do not use the minimap initially to navigate to series 9 (by instead avoiding the minimap and just clicking to expand RG 3 and then Series 9.

Expected behavior

After navigating to the collection with a specific number of objects, expanding and collapsing the containing collection should have no effect on the contained objects that are displayed.

Error message or screenshots

After clicking on the first minimap square on this collection contents page:

image

After collapsing and re-expanding Ping Pong Diplomacy, Series 9:

image

Impact on your work

This is a bug we haven't caught before, likely because it is only apparent in collections with very few objects. BUT, it would be very confusing for users when it occurs and could contribute to doubt in system function and accuracy of results.