fix: #2964 Update message for segmentation error loading due to orientation tolerance (#2982)

This commit is contained in:
Gitanjali authored and GitHub committed 2022-10-28 11:54:19 -06:00
1 parent eaa423c64e
commit 545161d5e8
4 files changed
+38 -8

No files matched your search

@@ -20,10 +20,18 @@ const mapDispatchToProps = (dispatch, ownProps) => {
const { Modality } = displaySet;
if (Modality === 'SEG' && servicesManager) {
const onDisplaySetLoadFailureHandler = error => {
LoggerService.error({ error, message: error.message });
const message =
error.message.includes('orthogonal') ||
error.message.includes('oblique')
? 'The segmentation has been detected as not planar,\
If you really think it is planar,\
please adjust the tolerance in the segmentation panel settings (at your own peril!)'
: error.message;
LoggerService.error({ error, message });
UINotificationService.show({
title: 'DICOM Segmentation Loader',
message: error.message,
message,
type: 'error',
autoClose: false,
});