diff --git a/ui-ngx/src/app/shared/components/ota-package/ota-package-autocomplete.component.ts b/ui-ngx/src/app/shared/components/ota-package/ota-package-autocomplete.component.ts index 316a68e4ac..04511fad38 100644 --- a/ui-ngx/src/app/shared/components/ota-package/ota-package-autocomplete.component.ts +++ b/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()