[opportunities] fix poc being removed after pipeline update (#1148)
This commit is contained in:
@ -2655,7 +2655,7 @@ export type UpdateOnePipelineProgressMutationVariables = Exact<{
|
|||||||
}>;
|
}>;
|
||||||
|
|
||||||
|
|
||||||
export type UpdateOnePipelineProgressMutation = { __typename?: 'Mutation', updateOnePipelineProgress?: { __typename?: 'PipelineProgress', id: string, amount?: number | null, closeDate?: string | null, probability?: number | null } | null };
|
export type UpdateOnePipelineProgressMutation = { __typename?: 'Mutation', updateOnePipelineProgress?: { __typename?: 'PipelineProgress', id: string, amount?: number | null, closeDate?: string | null, probability?: number | null, pointOfContact?: { __typename?: 'Person', id: string } | null } | null };
|
||||||
|
|
||||||
export type UpdateOnePipelineProgressStageMutationVariables = Exact<{
|
export type UpdateOnePipelineProgressStageMutationVariables = Exact<{
|
||||||
id?: InputMaybe<Scalars['String']>;
|
id?: InputMaybe<Scalars['String']>;
|
||||||
@ -4685,6 +4685,9 @@ export const UpdateOnePipelineProgressDocument = gql`
|
|||||||
amount
|
amount
|
||||||
closeDate
|
closeDate
|
||||||
probability
|
probability
|
||||||
|
pointOfContact {
|
||||||
|
id
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|||||||
@ -28,6 +28,9 @@ export const UPDATE_PIPELINE_PROGRESS = gql`
|
|||||||
amount
|
amount
|
||||||
closeDate
|
closeDate
|
||||||
probability
|
probability
|
||||||
|
pointOfContact {
|
||||||
|
id
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|||||||
@ -33,7 +33,7 @@ export function GenericEditableDateFieldEditMode({ viewField }: OwnProps) {
|
|||||||
|
|
||||||
setFieldValue(newDateISO);
|
setFieldValue(newDateISO);
|
||||||
|
|
||||||
if (currentEditableFieldEntityId && updateField && newDateISO) {
|
if (currentEditableFieldEntityId && updateField) {
|
||||||
updateField(currentEditableFieldEntityId, viewField, newDateISO);
|
updateField(currentEditableFieldEntityId, viewField, newDateISO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user