fix regression not showing warnings list on thumbnail for segmentations (#2563)

* fix regression not showing warnings list on thumbnail for segmentations

* update dcmjs version
This commit is contained in:
Davide Punzo authored and GitHub committed 2021-09-28 14:07:29 +02:00
1 parent 702d99cb93
commit 53b1d71d56
10 files changed
+13 -15

No files matched your search

+1 -1
View File
@@ -39,7 +39,7 @@
"dependencies": {
"@babel/runtime": "^7.5.5",
"ajv": "^6.10.0",
"dcmjs": "0.18.8",
"dcmjs": "0.18.9",
"dicomweb-client": "^0.8.1",
"immer": "6.0.2",
"isomorphic-base64": "^1.0.2",
+1 -1
View File
@@ -66,7 +66,7 @@
"cornerstone-math": "^0.1.9",
"cornerstone-tools": "^6.0.0",
"cornerstone-wado-image-loader": "^4.0.3",
"dcmjs": "0.18.8",
"dcmjs": "0.18.9",
"dicom-parser": "^1.8.9",
"dicomweb-client": "^0.8.1",
"hammerjs": "^2.0.8",
@@ -456,6 +456,7 @@ const _checkForSeriesInconsistencesWarnings = async function(
// warnings already checked and cached in displaySet
return displaySet.inconsistencyWarnings;
}
const inconsistencyWarnings = [];
if (displaySet.Modality !== 'SEG') {
@@ -515,7 +516,6 @@ const _checkForSeriesInconsistencesWarnings = async function(
} else {
const segMetadata = displaySet.metadata;
if (!segMetadata) {
displaySet.inconsistencyWarnings = inconsistencyWarnings;
return inconsistencyWarnings;
}
@@ -524,7 +524,6 @@ const _checkForSeriesInconsistencesWarnings = async function(
false
);
if (!referencedDisplaySet) {
displaySet.inconsistencyWarnings = inconsistencyWarnings;
return inconsistencyWarnings;
}
@@ -532,7 +531,6 @@ const _checkForSeriesInconsistencesWarnings = async function(
image.getImageId()
);
if (!imageIds || imageIds.length === 0) {
displaySet.inconsistencyWarnings = inconsistencyWarnings;
return inconsistencyWarnings;
}