From 702b6e51540f71cf2d4d9872eebf1660ca744889 Mon Sep 17 00:00:00 2001 From: Weiko Date: Wed, 9 Aug 2023 11:01:44 -0700 Subject: [PATCH] fix update pipelineProgress with 0 probability (#1144) --- .../components/ProbabilityEditableFieldEditMode.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/front/src/modules/ui/editable-field/components/ProbabilityEditableFieldEditMode.tsx b/front/src/modules/ui/editable-field/components/ProbabilityEditableFieldEditMode.tsx index 592436165e..01bb592e57 100644 --- a/front/src/modules/ui/editable-field/components/ProbabilityEditableFieldEditMode.tsx +++ b/front/src/modules/ui/editable-field/components/ProbabilityEditableFieldEditMode.tsx @@ -91,14 +91,12 @@ export function ProbabilityEditableFieldEditMode({ viewField }: OwnProps) { function handleChange(newValue: number) { setFieldValue(newValue); - if (currentEntityId && updateField && newValue) { + if (currentEntityId && updateField) { updateField(currentEntityId, viewField, newValue); } closeEditableField(); } - console.log(probabilityIndex); - return (