From 1173e7de6ca06e1e5895e9c649bc6bafac38d902 Mon Sep 17 00:00:00 2001 From: dxlin Date: Thu, 6 Apr 2023 14:05:46 -0400 Subject: [PATCH] fix(ROIThreshold): fix setWeight not updating properly for ROIThreshold panel (#3315) --- .../ROIThresholdConfiguration.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/extensions/tmtv/src/Panels/PanelROIThresholdSegmentation/ROIThresholdConfiguration.tsx b/extensions/tmtv/src/Panels/PanelROIThresholdSegmentation/ROIThresholdConfiguration.tsx index cd55a3cb0..1a2b706f8 100644 --- a/extensions/tmtv/src/Panels/PanelROIThresholdSegmentation/ROIThresholdConfiguration.tsx +++ b/extensions/tmtv/src/Panels/PanelROIThresholdSegmentation/ROIThresholdConfiguration.tsx @@ -72,7 +72,9 @@ function ROIThresholdConfiguration({ config, dispatch, runCommand }) { onChange={e => { dispatch({ type: 'setWeight', - payload: e.target.value, + payload: { + weight: e.target.value, + }, }); }} />