forked from Yara724/api
YARA-994 and fixed metal plate bug
This commit is contained in:
@@ -10205,6 +10205,18 @@ export class ClaimRequestManagementService {
|
||||
base: GetCaptureRequirementsV2ResponseDto,
|
||||
): GetCaptureRequirementsV2ResponseDto {
|
||||
const skipMetalPlate = !!(blame as any)?.isMadeByFileMaker;
|
||||
|
||||
// For V4/V5 files strip metal-plate keys from the base response entirely
|
||||
// so they never appear in any phase — the front-end should not show them.
|
||||
if (skipMetalPlate) {
|
||||
base = {
|
||||
...base,
|
||||
requiredDocuments: base.requiredDocuments.filter(
|
||||
(d) => !OPTIONAL_CAPTURE_PHASE_DOC_KEYS_V4V5.includes(d.key as any),
|
||||
),
|
||||
};
|
||||
}
|
||||
|
||||
const step = claimCase.workflow?.currentStep;
|
||||
const capturePartDone = this.claimV3StepCompleted(
|
||||
claimCase,
|
||||
|
||||
Reference in New Issue
Block a user