fix(measurements): read displayName in SplineROI and PlanarFreehandROI reports (#5908)

This commit is contained in:
Ghadeer Albattarni 2026-05-19 15:28:05 -04:00 committed by GitHub
parent 6f92234111
commit 27af6821b5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View File

@ -96,7 +96,7 @@ function getMappedAnnotations(annotation, displaySetService) {
const { cachedStats } = data;
const { referencedImageId } = metadata;
if( !cachedStats ) {
if (!cachedStats) {
return;
}
@ -160,8 +160,8 @@ function getColumnValueReport(annotation, customizationService) {
const { metadata, data } = annotation;
const stats = data.cachedStats[`imageId:${metadata.referencedImageId}`];
report.forEach(({ name, value }) => {
columns.push(name);
report.forEach(({ displayName, value }) => {
columns.push(displayName);
stats[value] ? values.push(stats[value]) : values.push('not available');
});

View File

@ -158,8 +158,8 @@ function getColumnValueReport(annotation, customizationService) {
const { metadata, data } = annotation;
const stats = data.cachedStats[`imageId:${metadata.referencedImageId}`];
report.forEach(({ name, value }) => {
columns.push(name);
report.forEach(({ displayName, value }) => {
columns.push(displayName);
stats[value] ? values.push(stats[value]) : values.push('not available');
});