fix update pipelineProgress with 0 probability (#1144)

This commit is contained in:
Weiko 2023-08-09 11:01:44 -07:00 committed by GitHub
parent 3122541f3b
commit 702b6e5154
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 (
<StyledContainer>
<StyledLabel>