fix: various type issues and error handlings (#2831)

* fix(error):Fix a few error conditions, mostly around seriesNumber

* apply few fixes
This commit is contained in:
Bill Wallace authored and GitHub committed 2022-09-08 22:09:28 -04:00
1 parent 71f5fa8e2f
commit 0090605cf7
10 files changed
+51 -21

No files matched your search

@@ -4,6 +4,7 @@ import classnames from 'classnames';
import { Icon, ButtonGroup, Button, Tooltip, CinePlayer } from '../';
import useOnClickOutside from '../../utils/useOnClickOutside';
import { useTranslation } from 'react-i18next';
import { StringNumber } from '../../Types';
const classes = {
infoHeader: 'text-base text-primary-light',
@@ -336,7 +337,7 @@ ViewportActionBar.propTypes = {
isTracked: PropTypes.bool.isRequired,
isRehydratable: PropTypes.bool.isRequired,
studyDate: PropTypes.string.isRequired,
currentSeries: PropTypes.string.isRequired,
currentSeries: StringNumber.isRequired,
seriesDescription: PropTypes.string.isRequired,
modality: PropTypes.string.isRequired,
patientInformation: PropTypes.shape({