fix(SM): drag and drop is now fixed for SM (#3813)
This commit is contained in:
1 parent
4f9a00f872
commit
f1a67647ae
5 files changed
+26
-10
No files matched your search
@@ -124,8 +124,11 @@ function modeFactory({ modeConfiguration }) {
|
||||
* segmentations and we should exclude them
|
||||
*/
|
||||
isValidMode: ({ modalities }) => {
|
||||
if (modalities.length === 1) {
|
||||
return !['SM', 'US', 'MG', 'OT', 'DOC', 'CR'].includes(modalities[0]);
|
||||
// Don't show the mode if the selected studies have only one modality
|
||||
// that is not supported by the mode
|
||||
const modalitiesArray = modalities.split('\\');
|
||||
if (modalitiesArray.length === 1) {
|
||||
return !['SM', 'US', 'MG', 'OT', 'DOC', 'CR'].includes(modalitiesArray[0]);
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user