File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed
cornerstone/src/services/CastService
platform/app/src/routes/Mode Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -192,6 +192,13 @@ export default class CastService extends PubSubService {
192192 return ;
193193 }
194194
195+ // Filter: Only process ArrowAnnotate annotations
196+ const toolName = annotation . metadata ?. toolName ;
197+ if ( toolName !== 'ArrowAnnotate' ) {
198+ console . debug ( 'CastService: Skipping annotation-update for non-arrow annotation:' , toolName ) ;
199+ return ;
200+ }
201+
195202 const annotationUID = annotation . annotationUID ;
196203
197204 // // Skip publishing if this annotation came from Cast (prevent loop)
@@ -1203,4 +1210,3 @@ export default class CastService extends PubSubService {
12031210 }
12041211 }
12051212}
1206-
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { useNavigate, useLocation } from 'react-router-dom';
33import { useTranslation } from 'react-i18next' ;
44
55import { Button , Header , Icons , useModal } from '@ohif/ui-next' ;
6- import { useSystem } from '@ohif/core' ;
6+ import { useSystem , DicomMetadataStore } from '@ohif/core' ;
77import { Toolbar } from '../Toolbar/Toolbar' ;
88import HeaderPatientInfo from './HeaderPatientInfo' ;
99import { PatientInfoVisibility } from './HeaderPatientInfo/HeaderPatientInfo' ;
Original file line number Diff line number Diff line change 11import React , { useEffect , useState , useRef } from 'react' ;
22import { useParams , useLocation } from 'react-router' ;
33import PropTypes from 'prop-types' ;
4- import { utils } from '@ohif/core' ;
4+ import { utils , DicomMetadataStore } from '@ohif/core' ;
55import { ImageViewerProvider , DragAndDropProvider } from '@ohif/ui-next' ;
66import { useSearchParams } from '../../hooks' ;
77import { useAppConfig } from '@state' ;
You can’t perform that action at this time.
0 commit comments