Browse Source

Merge pull request #5872 from vvlladd28/bug/device-profile/profile-url

[3.3.3] UI: Fixed error in device-profile-autocomplete and tenant-profile-autocomplete in clear
pull/5876/head
Igor Kulikov 5 years ago
committed by GitHub
parent
commit
edacfd57d6
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      ui-ngx/src/app/modules/home/components/profile/device-profile-autocomplete.component.ts
  2. 1
      ui-ngx/src/app/modules/home/components/profile/tenant-profile-autocomplete.component.ts

1
ui-ngx/src/app/modules/home/components/profile/device-profile-autocomplete.component.ts

@ -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);
}

1
ui-ngx/src/app/modules/home/components/profile/tenant-profile-autocomplete.component.ts

@ -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…
Cancel
Save