diff --git a/src/app/content/hemat-app/master/master-room/add-edit-master-room/add-edit-master-room.component.ts b/src/app/content/hemat-app/master/master-room/add-edit-master-room/add-edit-master-room.component.ts index 36f1124..fd62919 100644 --- a/src/app/content/hemat-app/master/master-room/add-edit-master-room/add-edit-master-room.component.ts +++ b/src/app/content/hemat-app/master/master-room/add-edit-master-room/add-edit-master-room.component.ts @@ -55,10 +55,9 @@ export class AddEditMasterRoomComponent { } editForm() { - console.log(this.dataRow); - this.myForm = this.fb.group({ id: this.dataRow.id, + roomId: this.dataRow.roomId, name: [this.dataRow.roomEntity.name, Validators.required], statusId: [this.dataRow.statusId, Validators.required], buildingId: [this.dataRow.buildingId, Validators.required], diff --git a/src/app/content/hemat-app/master/master-room/master-room.component.ts b/src/app/content/hemat-app/master/master-room/master-room.component.ts index 7f8054d..907dd21 100644 --- a/src/app/content/hemat-app/master/master-room/master-room.component.ts +++ b/src/app/content/hemat-app/master/master-room/master-room.component.ts @@ -109,8 +109,6 @@ export class MasterRoomComponent { } editRow(row) { - console.log(row); - const modalRef = this.modalService.open(AddEditMasterRoomComponent, { size: "lg", backdrop: "static", // Add this line @@ -122,14 +120,13 @@ export class MasterRoomComponent { modalRef.result.then( (result) => { if (result) { - console.log(result); const filteredData = { - id: result.id, + id: result.roomId, name: result.name, description: result.description, }; this.monitoringApiService - .putMasterRoomParam(filteredData, row.id) + .putMasterRoomParam(filteredData, row.roomId) .subscribe((res) => { console.log(res); const transformedData = {