Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to OHIF version 4.12.6 #111

Merged
merged 2 commits into from
Nov 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions extensions/dicom-tag-browser/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.2.14](https://github.com/OHIF/Viewers/compare/@ohif/[email protected]...@ohif/[email protected]) (2021-11-30)

**Note:** Version bump only for package @ohif/extension-dicom-tag-browser





## [0.2.13](https://github.com/OHIF/Viewers/compare/@ohif/[email protected]...@ohif/[email protected]) (2021-10-26)

**Note:** Version bump only for package @ohif/extension-dicom-tag-browser
Expand Down
2 changes: 1 addition & 1 deletion extensions/dicom-tag-browser/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ohif/extension-dicom-tag-browser",
"version": "0.2.13",
"version": "0.2.14",
"description": "OHIF extension for checking DICOM headers.",
"author": "OHIF",
"license": "MIT",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,10 @@ const DicomTagBrowser = ({ displaySets, displaySetInstanceUID }) => {
});

let metadata;
const isImageStack = activeDisplaySet instanceof ImageSet;
const isImageStack =
activeDisplaySet instanceof ImageSet &&
activeDisplaySet.isModalitySupported === true;

let selectedInstanceValue;
let instanceList;

if (isImageStack) {
Expand Down Expand Up @@ -91,7 +92,7 @@ const DicomTagBrowser = ({ displaySets, displaySetInstanceUID }) => {
setInstanceList(instanceList);
setDisplaySetList(newDisplaySetList);
setIsImageStack(isImageStack);
}, [activeDisplaySetInstanceUID, activeInstance]);
}, [activeDisplaySetInstanceUID, activeInstance, displaySets]);

const selectedDisplaySetValue = displaySetList.find(
ds => ds.value === activeDisplaySetInstanceUID
Expand Down
8 changes: 8 additions & 0 deletions extensions/vtk/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [1.12.6](https://github.com/OHIF/Viewers/compare/@ohif/[email protected]...@ohif/[email protected]) (2021-11-30)

**Note:** Version bump only for package @ohif/extension-vtk





## [1.12.5](https://github.com/OHIF/Viewers/compare/@ohif/[email protected]...@ohif/[email protected]) (2021-10-26)

**Note:** Version bump only for package @ohif/extension-vtk
Expand Down
6 changes: 3 additions & 3 deletions extensions/vtk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ohif/extension-vtk",
"version": "1.12.5",
"version": "1.12.6",
"description": "OHIF extension for VTK.js",
"author": "OHIF",
"license": "MIT",
Expand Down Expand Up @@ -53,8 +53,8 @@
"react-vtkjs-viewport": "^0.14.4"
},
"devDependencies": {
"@ohif/core": "^2.16.1",
"@ohif/ui": "^1.10.4",
"@ohif/core": "^2.16.2",
"@ohif/ui": "^1.10.5",
"cornerstone-tools": "^6.0.0",
"cornerstone-wado-image-loader": "^4.0.3",
"dicom-parser": "^1.8.9",
Expand Down
8 changes: 8 additions & 0 deletions platform/core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [2.16.2](https://github.com/OHIF/Viewers/compare/@ohif/[email protected]...@ohif/[email protected]) (2021-11-30)

**Note:** Version bump only for package @ohif/core





## [2.16.1](https://github.com/OHIF/Viewers/compare/@ohif/[email protected]...@ohif/[email protected]) (2021-10-26)

**Note:** Version bump only for package @ohif/core
Expand Down
2 changes: 1 addition & 1 deletion platform/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ohif/core",
"version": "2.16.1",
"version": "2.16.2",
"description": "Generic business logic for web-based medical imaging applications",
"author": "OHIF Core Team",
"license": "MIT",
Expand Down
14 changes: 10 additions & 4 deletions platform/core/src/classes/StudyPrefetcher.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import cornerstone from 'cornerstone-core';
import cornerstoneTools from 'cornerstone-tools';

import getImageId from '../utils/getImageId.js';

const noop = () => {};
Expand Down Expand Up @@ -94,7 +92,11 @@ export class StudyPrefetcher {
}

this.element = element;
this.enabledElement = cornerstone.getEnabledElement(element);
try {
this.enabledElement = cornerstone.getEnabledElement(element);
} catch {
throw new Error('Failed to find the enabled element');
}

this.stopPrefetching();
this.prefetchDisplaySets(displaySetInstanceUID);
Expand All @@ -114,7 +116,11 @@ export class StudyPrefetcher {
* @param {number} timeout
*/
prefetchDisplaySetsAsync(element, timeout) {
this.enabledElement = cornerstone.getEnabledElement(element);
try {
this.enabledElement = cornerstone.getEnabledElement(element);
} catch {
throw new Error('Failed to find the enabled element');
}
timeout = timeout || this.options.prefetchDisplaySetsTimeout;
clearTimeout(this.prefetchDisplaySetsHandler);
this.prefetchDisplaySetsHandler = setTimeout(() => {
Expand Down
Loading