Skip to content

Tree view group by date broken - downgrade of dependency would be temp fix #1344

@LlGC-jop

Description

@LlGC-jop

Requesting temporary downgrade of iiif-tree-component dependency to v2.0.3 until fix is approved (IIIF-Commons/iiif-tree-component#24)

UV version:

 universalviewer@4.0.25+, possibly earlier

I'm submitting a:

  • bug report => please fork one of these codesandbox examples with a repro of your issue and include a link to it below
  • feature request => please use the user stories repo
  • support request => Please do not submit support requests here, use stackoverflow

Current behavior:

Tree view date grouping is broken on collection manifests.

Expected behavior:

Date grouping should work.

Steps to reproduce:

  1. Go to: https://www.universalviewer.dev/#?xywh=-2414%2C-414%2C7394%2C4369&iiifManifestId=https%3A%2F%2Fwellcomelibrary.org%2Fiiif%2Fcollection%2Fb19974760
  2. Open DevTools
  3. In the left panel, select Index if not already selected.
  4. Click the 'date' sort by option
  5. You should see an error in DevTools about trying to access property 'label' on undefined property (data.data.__jsonld) and the tree will not change.

Other information:

The error wasn't present in v4.0.0, as seen here: https://uv-v4.netlify.app/#?iiifManifestId=https%3A%2F%2Fwellcomelibrary.org%2Fiiif%2Fcollection%2Fb19974760&c=&m=&cv=&xywh=-655%2C-626%2C3495%2C4247

At this point the dependency was at v2.0.3.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions