fix tbxVehicleTaxInYear

This commit is contained in:
vchikalkin 2023-04-17 15:43:32 +03:00
parent be53b42aa0
commit 0529ae7487

View File

@ -202,7 +202,7 @@ export function common({ store, apolloClient, queryClient }: ProcessContext) {
},
context
);
const { tax, error } = await queryClient.fetchQuery(
const { tax } = await queryClient.fetchQuery(
['1c', 'trans-tax', carCategory, leaseObjectMotorPower, leaseObjectYear],
request,
{
@ -210,7 +210,7 @@ export function common({ store, apolloClient, queryClient }: ProcessContext) {
}
);
if (!error && tax) {
if (tax) {
$calculation.element('tbxVehicleTaxInYear').setValue(tax);
} else {
$calculation.element('tbxVehicleTaxInYear').resetValue();