UI: fixed device profile create/update form validation
This commit is contained in:
parent
90d945cb2c
commit
7addeaf96c
@ -121,7 +121,8 @@ export class DeviceProfileTransportConfigurationComponent implements ControlValu
|
||||
}
|
||||
|
||||
public validate(c: UntypedFormControl): ValidationErrors | null {
|
||||
return (this.deviceProfileTransportConfigurationFormGroup.valid) ? null : {
|
||||
return (this.transportType === DeviceTransportType.DEFAULT ||
|
||||
this.deviceProfileTransportConfigurationFormGroup.valid) ? null : {
|
||||
configuration: {
|
||||
valid: false,
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user