Skip to content

Commit fb9e06c

Browse files
author
triet
committed
Fixed Window metadata parsed as strings when Window metadata is array
1 parent 29eab13 commit fb9e06c

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
66
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
77

8+
## [1.1.9] - 2021-02-28
9+
### Fixed
10+
- Fixed Window metadata parsed as strings when Window metadata is array - [@triet12369]
11+
812
## [1.1.8] - 2021-02-23
913
### Fixed
1014
- Fixed metadata number parsed as strings in some cases - [@triet12369]

dist/index.umd.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.umd.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "viewer-core",
3-
"version": "1.1.8",
3+
"version": "1.1.9",
44
"description": "Generic business logic for web-based medical imaging applications - edited by Tung LT",
55
"author": "OHIF Core Team",
66
"editor": "Tung LT",

src/classes/MetadataProvider.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -288,12 +288,13 @@ class MetadataProvider {
288288
break;
289289
case WADO_IMAGE_LOADER_TAGS.VOI_LUT_MODULE:
290290
const {WindowCenter, WindowWidth} = instance;
291+
console.log('MetadataProvider', instance);
291292

292293
const windowCenter = Array.isArray(WindowCenter)
293-
? WindowCenter
294+
? WindowCenter.map((wc) => convertNumber(wc))
294295
: [convertNumber(WindowCenter)];
295296
const windowWidth = Array.isArray(WindowWidth)
296-
? WindowWidth
297+
? WindowWidth.map((ww) => convertNumber(ww))
297298
: [convertNumber(WindowWidth)];
298299

299300
metadata = {

0 commit comments

Comments
 (0)