From aa6b071ccb48a9770b9d61bc4ae782ee29b0021c Mon Sep 17 00:00:00 2001 From: Oliver Scott Date: Wed, 13 Sep 2023 15:07:09 +0100 Subject: [PATCH] Fix sonar issues --- .../add-participant-base/add-participant-base.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AdminWebsite/AdminWebsite/ClientApp/src/app/booking/add-participant-base/add-participant-base.component.ts b/AdminWebsite/AdminWebsite/ClientApp/src/app/booking/add-participant-base/add-participant-base.component.ts index cdab71d8b..6a417efc8 100644 --- a/AdminWebsite/AdminWebsite/ClientApp/src/app/booking/add-participant-base/add-participant-base.component.ts +++ b/AdminWebsite/AdminWebsite/ClientApp/src/app/booking/add-participant-base/add-participant-base.component.ts @@ -197,7 +197,7 @@ export abstract class AddParticipantBaseDirective extends BookingBaseComponent i this.displayErrorNoParticipants = false; this.displayAdd(); this.enableFields(); - this.participantDetails = Object.assign({}, participantDetails); + this.participantDetails = { ...participantDetails }; if (participantDetails.is_exist_person) { this.disableLastFirstNames();