Skip to content

Commit

Permalink
fix visible layers toggle
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Pickering <[email protected]>
  • Loading branch information
alexvpickering committed Dec 5, 2024
1 parent 9d287fc commit 6d1d317
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const SpatialVisibleLayersSettings = (props) => {
const dispatch = useDispatch();

const { componentType } = props;
const { showImages, showSegmentations } = useSelector((state) => state.componentConfig[componentType]);
const { showImages, showSegmentations } = useSelector((state) => state.componentConfig[componentType].config);

const [listData, setListData] = useState([]);

Expand All @@ -34,12 +34,12 @@ const SpatialVisibleLayersSettings = (props) => {
{
key: 'showImages',
name: 'Images',
visible: showImages || true,
visible: showImages,
},
{
key: 'showSegmentations',
name: 'Segmentations',
visible: showSegmentations || true,
visible: showSegmentations,

},
]);
Expand Down

0 comments on commit 6d1d317

Please sign in to comment.