Skip to content

Commit

Permalink
minor code changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaseel-trenser committed Feb 3, 2025
1 parent daa1d05 commit d2613b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions extensions/cornerstone/src/init.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -276,9 +276,9 @@ export default async function init({
const subscribeToEvents = listeners => {
Object.entries(listeners).forEach(([event, commands]) => {
const supportedEvents = [
segmentationService?.EVENTS.ACTIVE_SEGMENTATION_CHANGED,
segmentationService?.EVENTS.SEGMENTATION_ADDED,
segmentationService?.EVENTS.SEGMENT_REMOVED,
segmentationService.EVENTS.ACTIVE_SEGMENTATION_CHANGED,
segmentationService.EVENTS.SEGMENTATION_ADDED,
segmentationService.EVENTS.SEGMENT_REMOVED,
];

if (supportedEvents.includes(event)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1716,9 +1716,7 @@ class SegmentationService extends PubSubService {
};

private _setActiveSegment(segmentationId: string, segmentIndex: number) {

cstSegmentation.segmentIndex.setActiveSegmentIndex(segmentationId, segmentIndex);

}

private _getVolumeIdForDisplaySet(displaySet) {
Expand Down

0 comments on commit d2613b5

Please sign in to comment.