UI: Fixed error in device-profile-autocomplete and tenant-profile-autocomplete in clear
This commit is contained in:
parent
15935a39b4
commit
d1c4a98bd3
@ -284,7 +284,6 @@ export class DeviceProfileAutocompleteComponent implements ControlValueAccessor,
|
||||
const idValue = deviceProfile && deviceProfile.id ? new DeviceProfileId(deviceProfile.id.id) : null;
|
||||
if (!entityIdEquals(this.modelValue, idValue)) {
|
||||
this.modelValue = idValue;
|
||||
this.deviceProfileURL = getEntityDetailsPageURL(this.modelValue.id, this.modelValue.entityType);
|
||||
this.propagateChange(this.modelValue);
|
||||
this.deviceProfileChanged.emit(deviceProfile);
|
||||
}
|
||||
|
||||
@ -128,7 +128,6 @@ export class TenantProfileAutocompleteComponent implements ControlValueAccessor,
|
||||
(profile) => {
|
||||
if (profile) {
|
||||
this.modelValue = new TenantProfileId(profile.id.id);
|
||||
this.tenantProfileURL = getEntityDetailsPageURL(this.modelValue.id, this.modelValue.entityType);
|
||||
this.selectTenantProfileFormGroup.get('tenantProfile').patchValue(profile, {emitEvent: false});
|
||||
this.propagateChange(this.modelValue);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user