diff --git a/web/src/models/PaymentInformation.js b/web/src/models/PaymentInformation.js index f4a7331..5a4fcd8 100644 --- a/web/src/models/PaymentInformation.js +++ b/web/src/models/PaymentInformation.js @@ -23,8 +23,8 @@ export default class PaymentInformation { this.id = data._id; this.companySlug = data.companySlug; - this.fromCompany = Object.assign({}, data.fromCompany); - this.targetCompany = Object.assign({}, data.targetCompany); + this.fromCompany = { ...data.fromCompany }; + this.targetCompany = { ...data.targetCompany }; this.projectName = data.projectName; this.remark = data.remark; this.currency = data.currency;