|
|
@ -72,12 +72,11 @@ export class OtaPackageAutocompleteComponent implements ControlValueAccessor, On |
|
|
|
|
|
|
|
|
@Input() |
|
|
@Input() |
|
|
set deviceProfileId(value: string) { |
|
|
set deviceProfileId(value: string) { |
|
|
this.deviceProfile = value; |
|
|
if (this.deviceProfile !== value) { |
|
|
const packageId = this.otaPackageFormGroup.get('packageId').value; |
|
|
if (this.deviceProfile) { |
|
|
if (packageId && isNotEmptyStr(packageId)) { |
|
|
this.reset(); |
|
|
this.reset(); |
|
|
} |
|
|
} else { |
|
|
this.deviceProfile = value; |
|
|
this.cleanFilteredPackages.next([]); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|