Employee - Mutation (Ownership Transfer)
Last updated
Was this helpful?
Was this helpful?
documents: [
...data.originalData?.documents.filter(
(oldDoc) => !mutationDocs?.PropertyTax?.MutationDocuments.some((mut) => oldDoc.documentType.includes(mut.code))
),
...data.documents.documents.map((e) =>
e.documentType.includes("OWNER.TRANSFERREASONDOCUMENT") ? { ...e, documentType: e.documentType.split(".")[2] } : e
),
],