Switch toolState usage since ES6 modules are read-only
This commit is contained in:
1 parent
ddef3c4710
commit
27296a8bca
12 files changed
+308
-309
No files matched your search
@@ -10,7 +10,7 @@ import { OHIF } from 'meteor/ohif:core';
|
||||
*/
|
||||
export const prepareViewerData = ({ studyInstanceUids, timepointId, timepointsFilter={} }) => {
|
||||
// Clear the cornerstone tool data to sync the measurements with the measurements API
|
||||
cornerstoneTools.globalImageIdSpecificToolStateManager = cornerstoneTools.newImageIdSpecificToolStateManager();
|
||||
cornerstoneTools.globalImageIdSpecificToolStateManager.restoreToolState({});
|
||||
|
||||
// Retrieve the studies metadata
|
||||
const promise = new Promise((resolve, reject) => {
|
||||
@@ -109,7 +109,7 @@ const getDataFromTimepoint = timepoint => {
|
||||
|
||||
return {
|
||||
studyInstanceUids: relatedStudies,
|
||||
timepointIds: timepointIds
|
||||
timepointIds
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user