Browse Source

Merge pull request #9923 from Dmitriymush/bug-fix/ota-package-autocomplete

Fixed ota-package-autocomplete override of formValue on new inputs value
pull/10060/head
Igor Kulikov 3 years ago
committed by GitHub
parent
commit
13a099e2ae
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 8
      ui-ngx/src/app/shared/components/ota-package/ota-package-autocomplete.component.ts

8
ui-ngx/src/app/shared/components/ota-package/ota-package-autocomplete.component.ts

@ -72,8 +72,12 @@ export class OtaPackageAutocompleteComponent implements ControlValueAccessor, On
@Input()
set deviceProfileId(value: string) {
this.deviceProfile = value;
this.reset();
if (this.deviceProfile !== value) {
if (this.deviceProfile) {
this.reset();
}
this.deviceProfile = value;
}
}
@Input()

Loading…
Cancel
Save