Thumbnails sort of show up
This commit is contained in:
1 parent
304caba873
commit
44733b987e
2 files changed
+5
-23
No files matched your search
@@ -14,7 +14,6 @@ import MeasurementTable from './MeasurementTable.js';
|
||||
// - show errors in UI for thumbnails if promise fails
|
||||
|
||||
function getImageSrc(imageId, { cornerstone }) {
|
||||
// TODO: Switch to async/await when it stops failing
|
||||
return new Promise((resolve, reject) => {
|
||||
cornerstone.loadAndCacheImage(imageId).then(image => {
|
||||
const canvas = document.createElement('canvas');
|
||||
@@ -117,7 +116,7 @@ function StudyBrowserPanel({ getDataSources, commandsManager }) {
|
||||
modality: ds.Modality,
|
||||
date: ds.SeriesDate,
|
||||
numInstances: ds.numImageFrames,
|
||||
//imageSrc,
|
||||
imageSrc: thumbnailImageSrcMap.get(ds.displaySetInstanceUid),
|
||||
};
|
||||
|
||||
const displaySetViewportData = viewportData.find(
|
||||
|
||||
Reference in new issue
Block a user