dcmjs-org / dcmjs

Javascript implementation of DICOM manipulation
https://dcmjs.netlify.com/
MIT License
291 stars 110 forks source link

fix exceptions caused by undefined cached stats in adapters. Safe pro… #301

Closed ladeirarodolfo closed 2 years ago

ladeirarodolfo commented 2 years ago

…gramming fix only

Motivation

CachedStats property of annotation tools is populated async. So, to prevent JS exceptions when adapting report we should add some safe programming conditions.

Includes

fixes https://github.com/dcmjs-org/dcmjs/issues/302

github-actions[bot] commented 2 years ago

:tada: This PR is included in version 0.24.9 :tada:

The release is available on:

Your semantic-release bot :package::rocket: