Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DotNet/Audit/Properties/launchSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"ConnectionStrings__DatabaseConnection": "Server=tcp:localhost,1433;Initial Catalog=link-audit;Persist Security Info=False;User ID=sa;Password=${LINK_DB_PASS};MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=True;Connection Timeout=30;",
"Serilog__WriteTo__0__Args__uri": "http://localhost:3100",
"Telemetry__OtelCollectorEndpoint": "http://localhost:4317",
"ServiceRegistry__TenantService__TenantServiceURL": "http://localhost:8074/api"
"ServiceRegistry__TenantService__TenantServiceURL": "http://localhost:8074"
},
"dotnetRunMessages": true,
"applicationUrl": "http://localhost:8062"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,12 @@ export class CensusConfigFormComponent implements OnInit, OnChanges {
this.configForm = new FormGroup({
facilityId: new FormControl('', Validators.required),
scheduledTrigger: new FormControl('', Validators.required),
enabled: new FormControl(true)
});
}

ngOnInit(): void {

this.configForm = new FormGroup({
facilityId: new FormControl('', Validators.required),
scheduledTrigger: new FormControl('', Validators.required),
enabled: new FormControl(true) // Add this line
});

if(this.item) {
//set form values
this.facilityIdControl.setValue(this.item.facilityId);
Expand All @@ -93,7 +88,7 @@ export class CensusConfigFormComponent implements OnInit, OnChanges {
this.scheduledTriggerControl.setValue(this.item.scheduledTrigger);
this.scheduledTriggerControl.updateValueAndValidity();

this.enabledControl.setValue(this.item.enabled !== undefined ? this.item.enabled : true);
this.enabledControl.setValue(this.item?.enabled !== undefined ? this.item.enabled : true);
this.enabledControl.updateValueAndValidity();

// toggle view
Expand Down
Loading