[opportunities] fix poc being removed after pipeline update (#1148)

This commit is contained in:
Weiko
2023-08-09 17:52:36 -07:00
committed by GitHub
parent cd831af53d
commit a2891e50e6
3 changed files with 8 additions and 2 deletions

View File

@ -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<{
id?: InputMaybe<Scalars['String']>;
@ -4685,6 +4685,9 @@ export const UpdateOnePipelineProgressDocument = gql`
amount
closeDate
probability
pointOfContact {
id
}
}
}
`;

View File

@ -28,6 +28,9 @@ export const UPDATE_PIPELINE_PROGRESS = gql`
amount
closeDate
probability
pointOfContact {
id
}
}
}
`;

View File

@ -33,7 +33,7 @@ export function GenericEditableDateFieldEditMode({ viewField }: OwnProps) {
setFieldValue(newDateISO);
if (currentEditableFieldEntityId && updateField && newDateISO) {
if (currentEditableFieldEntityId && updateField) {
updateField(currentEditableFieldEntityId, viewField, newDateISO);
}
}