Fix minor issues IDC (#2903)

This commit is contained in:
Davide Punzo authored and GitHub committed 2022-08-31 14:57:14 +02:00
1 parent 850de2903a
commit ef60156a47
6 files changed
+19 -11

No files matched your search

@@ -1,4 +1,4 @@
import React, { useState, useEffect } from 'react';
import React, { useState, useEffect, useCallback } from 'react';
import PropTypes from 'prop-types';
import cornerstoneTools from 'cornerstone-tools';
import cornerstone from 'cornerstone-core';
@@ -224,10 +224,7 @@ const SegmentationPanel = ({
)
);
};
}, [
activeIndex,
viewports,
]);
}, [activeIndex, viewports]);
const updateSegmentationComboBox = e => {
const index = e.detail.activatedLabelmapIndex;
@@ -694,7 +691,7 @@ const SegmentationPanel = ({
count={state.segmentList.length}
isVisible={
state.segmentsHidden.filter(isHidden => isHidden === true).length <
state.segmentNumbers.length && state.segmentNumbers.length > 0
state.segmentNumbers.length && state.segmentNumbers.length > 0
}
onVisibilityChange={onVisibilityChangeHandler}
>