Skip to content

[Bug] Error Cannot destructure property 'modality' of 'metaData.get(...)' as it is undefined. when using a dicomjson source #5680

@mateusfmcota

Description

@mateusfmcota

Describe the Bug

I'm trying to load this dicomjson as source but it throws an error when loading it

error:

react-dom.production.min.js:188 TypeError: Cannot destructure property 'modality' of 'V.get(...)' as it is undefined.
    at utils.ts:63:33
    at useViewportDisplaySets.ts:176:7
    at d (useViewportDisplaySets.ts:171:66)
    at p (useViewportRendering.tsx:141:35)
    at Po (AdvancedRenderingControls.tsx:44:27)

The volume is a single dicom file with a bunch of slices/frames on it. Here the one throwing an error anonymized:

dicomjson: https://quickdrop.cota.xyz/api/file/download/kw9fW
dicom file: https://quickdrop.cota.xyz/api/file/download/IuBW7

Loading the dicom file using by local files works without any issue, just when using by dicomjson that the error happens

Steps to Reproduce

  1. Open the following dicomjson on the viewer
  2. https://viewer.ohif.org/viewer/dicomjson?url=https://quickdrop.cota.xyz/api/file/download/kw9fW
  3. see error

The current behavior

It throws an error on the console and doesn't load the files

The expected behavior

Load the dicom files properly

System Information

I'm using the viewer.ohif.com with a dicomjson file. I tested both on the latest chrome and firefox on linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions