diff --git a/src/store/index.js b/src/store/index.js index a5d1f4e68..c91f9a63c 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -41,7 +41,11 @@ import { coverageTypeValue, coverageTypeEnum, } from "@/constants/insurance"; -import { containsRecalParts, getTopLevelPartsWithRecal } from "@/helpers/recal-helper"; +import { + containsRecalParts, + getTopLevelPartsWithRecal, + isRecalPartOrHasChildRecalPart, +} from "@/helpers/recal-helper"; import { externalParameterStatus } from "@/constants/external-parameters"; import { experimentSettings } from "@/constants/experiments"; import experimentMixin from "@/mixins/experiment-mixin.js"; @@ -1651,9 +1655,10 @@ export const actions = { const partialLineItemsObjects = context.getters.order.lineItems.glassParts?.map( (lineItem) => ({ partNumber: lineItem.partNumber, - recalibrationType: lineItem.recalibrationType - ? escapeRecalibrationType(lineItem.recalibrationType) - : undefined, + recalibrationType: + lineItem.recalibrationType && isRecalPartOrHasChildRecalPart(lineItem) + ? escapeRecalibrationType(lineItem.recalibrationType) + : undefined, }) );