OHIF / Viewers

OHIF zero-footprint DICOM viewer and oncology specific Lesion Tracker, plus shared extension packages
https://docs.ohif.org/
MIT License
3.37k stars 3.39k forks source link

[Bug] 3.9 - Support for an array of hangingProtocols in a mode is broken. #4536

Open JamesAPetts opened 1 day ago

JamesAPetts commented 1 day ago

Describe the Bug

In 3.8 you could set an array of hangingProtocols in the hangingProtocol field of a mode.

This is broken in 3.9, as the following code assumes that you just pass a string: https://github.com/OHIF/Viewers/blob/3b668675084bc7bb506f1d960d98e9563e6d4899/platform/app/src/routes/Mode/Mode.tsx#L221

Steps to Reproduce

Set an array of hanging protocols on a mode.

The current behavior

An error boundary is hit and the route fails to initialise.

The expected behavior

Multiple hanging protocols should be supported, and no error thrown.

OS

N/A

Node version

N/A

Browser

N/A