Viewers
Viewers copied to clipboard
Rectangle ROI Threshold tool in TMTV mode causes "Something Went Wrong" Error (3.9.0-beta.24) [Bug]
Describe the Bug
Within TMTV mode when a user tries to create the "Rectangle ROI Threshold" to allow TMTV and SUV calculation a "Something Went Wrong" Error is popping up.
Steps to Reproduce
- Using OHIF viewer dev go to - https://viewer-dev.ohif.org/tmtv?StudyInstanceUIDs=1.3.6.1.4.1.14519.5.2.1.7009.2403.871108593056125491804754960339
- Select the PET axial frame
- Click "Add Segmentation"
- Click the Rectangle ROI Threshold button
The current behavior
When trying to create the Rectangle ROI Threshold to allow the user to create the TMTV stats and SUV Peak a "Something Went Wrong" Error is happening.
The following is displayed in the console
react-dom.production.min.js:188 TypeError: r.forEach is not a function at ToolboxUI.tsx:36:23 at rl (react-dom.production.min.js:243:332) at Ic (react-dom.production.min.js:285:111) at react-dom.production.min.js:282:409 at bc (react-dom.production.min.js:280:398) at lc (react-dom.production.min.js:272:439) at Ga (react-dom.production.min.js:127:105) at react-dom.production.min.js:266:273 ds @ react-dom.production.min.js:188 i.componentDidCatch.n.callback @ react-dom.production.min.js:189 Hi @ react-dom.production.min.js:156 Ml @ react-dom.production.min.js:260 Sl @ react-dom.production.min.js:259 yl @ react-dom.production.min.js:258 (anonymous) @ react-dom.production.min.js:282 bc @ react-dom.production.min.js:280 lc @ react-dom.production.min.js:272 Ga @ react-dom.production.min.js:127 (anonymous) @ react-dom.production.min.js:266 Show 11 more frames Show lessUnderstand this error ErrorBoundary.tsx:78 Right Panel Error Boundary TypeError: r.forEach is not a function at ToolboxUI.tsx:36:23 at rl (react-dom.production.min.js:243:332) at Ic (react-dom.production.min.js:285:111) at react-dom.production.min.js:282:409 at bc (react-dom.production.min.js:280:398) at lc (react-dom.production.min.js:272:439) at Ga (react-dom.production.min.js:127:105) at react-dom.production.min.js:266:273 {componentStack: '\n at yI (https://viewer-dev.ohif.org/app.bundle…f.org/app.bundle.4bd0ec2bf88352df9963.js:2:42632)'} Right Panel
The expected behavior
Rectangle ROI Threshold should not cause an error and should instead allow the user to create an ROI
OS
Windows 11
Node version
OHIF dev Viewer version
Browser
Version 125.0.6422.78 (Official Build) (64-bit)