Skip to content

Commit

Permalink
fix(dicomMessage): to handle undefined return value
Browse files Browse the repository at this point in the history
  • Loading branch information
sedghi committed Jan 17, 2025
1 parent e8f375c commit 6ea986b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"build": "rollup -c",
"build:examples": "npm run build && npx cpx 'build/**/*.{js,map}' examples/js",
"start": "rollup -c -w",
"dev": "rollup -c -w",
"format": "prettier --write 'src/**/*.js' 'test/**/*.js'",
"format:check": "prettier --check 'src/**/*.js' 'test/**/*.js'",
"lint": "eslint --fix 'src/**/*.js' 'test/**/*.js'"
Expand Down
2 changes: 1 addition & 1 deletion src/DicomMessage.js
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ class DicomMessage {
length,
syntax,
options
);
) || {};
if (!vr.isBinary() && singleVRs.indexOf(vr.type) == -1) {
rawValues = rawValue;
values = value;
Expand Down

0 comments on commit 6ea986b

Please sign in to comment.