mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-18 09:02:11 +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) {
|
||||
setFieldValue(newValue);
|
||||
if (currentEntityId && updateField && newValue) {
|
||||
if (currentEntityId && updateField) {
|
||||
updateField(currentEntityId, viewField, newValue);
|
||||
}
|
||||
closeEditableField();
|
||||
}
|
||||
|
||||
console.log(probabilityIndex);
|
||||
|
||||
return (
|
||||
<StyledContainer>
|
||||
<StyledLabel>
|
||||
|
Loading…
Reference in New Issue
Block a user