diff --git a/apps/web/process/gibdd/get-kp-data.ts b/apps/web/process/gibdd/get-kp-data.ts index 5a1ce6f..5a5a59a 100644 --- a/apps/web/process/gibdd/get-kp-data.ts +++ b/apps/web/process/gibdd/get-kp-data.ts @@ -49,7 +49,6 @@ export async function getKPData({ values }: GetQuoteInputData): Promise) { async function getRegionByFias(evo_region_fias_id: string) { @@ -42,11 +30,9 @@ export default function helper({ apolloClient }: Pick) { + }: Pick) { let lead: CRMTypes.GetLeadQuery['lead'] = null; let opportunity: CRMTypes.GetOpportunityQuery['opportunity'] = null; - let quote: CRMTypes.GetQuoteRegionTownQuery['quote'] = null; if (leadid) { const { data } = await apolloClient.query({ @@ -65,17 +51,6 @@ export default function helper({ apolloClient }: Pick({ - query: QUERY_GET_QUOTE_REGION_TOWN, - variables: { quoteId }, - }); - ({ quote } = data); - } - // region let region: Awaited> = null; const evo_region_fias_id = @@ -103,12 +78,6 @@ export default function helper({ apolloClient }: Pick $calculation.$values.getValues(['lead', 'opportunity']), async ({ lead, opportunity }) => { - const { account } = await getData({ lead, opportunity, quote: null }); + const { account } = await getData({ lead, opportunity }); if (account.evo_legal_regionid) { $calculation @@ -407,7 +407,7 @@ export function common({ store, apolloClient, queryClient }: ProcessContext) { reaction( () => $calculation.$values.getValues(['lead', 'opportunity', 'objectRegistration']), async ({ lead, objectRegistration, opportunity }) => { - const { account } = await getData({ lead, opportunity, quote: null }); + const { account } = await getData({ lead, opportunity }); if (objectRegistration === 100_000_000 && account.evo_regionid) { $calculation.element('selectRegionRegistration').setValue(account.evo_regionid).block();