fix update pipelineProgress with 0 probability (#1144)
This commit is contained in:
@ -91,14 +91,12 @@ export function ProbabilityEditableFieldEditMode({ viewField }: OwnProps) {
|
|||||||
|
|
||||||
function handleChange(newValue: number) {
|
function handleChange(newValue: number) {
|
||||||
setFieldValue(newValue);
|
setFieldValue(newValue);
|
||||||
if (currentEntityId && updateField && newValue) {
|
if (currentEntityId && updateField) {
|
||||||
updateField(currentEntityId, viewField, newValue);
|
updateField(currentEntityId, viewField, newValue);
|
||||||
}
|
}
|
||||||
closeEditableField();
|
closeEditableField();
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(probabilityIndex);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<StyledContainer>
|
<StyledContainer>
|
||||||
<StyledLabel>
|
<StyledLabel>
|
||||||
|
|||||||
Reference in New Issue
Block a user