Skip to content

Commit 6afe4a4

Browse files
Copilotrenemadsen
andcommitted
Fix missing this. prefix for model in ngOnInit (1 file)
Co-authored-by: renemadsen <[email protected]>
1 parent d4891ce commit 6afe4a4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

eform-client/src/app/plugins/modules/backend-configuration-pn/modules/property-workers/components/property-worker-create-edit-modal/property-worker-create-edit-modal.component.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,11 @@ export class PropertyWorkerCreateEditModalComponent implements OnInit, OnDestroy
128128
}
129129

130130
ngOnInit() {
131-
this.assignments = [...model.assignments];
132-
this.availableProperties = [...model.availableProperties];
133-
this.selectedDeviceUser = {...model.deviceUser ?? new DeviceUserModel()};
134-
this.selectedDeviceUserCopy = {...model.deviceUser};
135-
this.assignmentsCopy = [...model.assignments];
131+
this.assignments = [...this.model.assignments];
132+
this.availableProperties = [...this.model.availableProperties];
133+
this.selectedDeviceUser = {...this.model.deviceUser ?? new DeviceUserModel()};
134+
this.selectedDeviceUserCopy = {...this.model.deviceUser};
135+
this.assignmentsCopy = [...this.model.assignments];
136136
this.taskManagementEnabled = this.selectedDeviceUserCopy.taskManagementEnabled;
137137
this.timeRegistrationEnabled = this.selectedDeviceUserCopy.timeRegistrationEnabled;
138138

0 commit comments

Comments
 (0)