mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-18 17:12:53 +03:00
fix update pipelineProgress with 0 probability (#1144)
This commit is contained in:
parent
3122541f3b
commit
702b6e5154
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user