Fixed an issue with setting the default location in package management (#10263)

This commit is contained in:
Leila Lali
2020-05-04 17:00:51 -07:00
committed by GitHub
parent 5498c1c3a9
commit a7c4a259ad
2 changed files with 31 additions and 1 deletions

View File

@@ -133,7 +133,7 @@ export class ManagePackagesDialogModel {
* Returns the default location
*/
public get defaultLocation(): string | undefined {
return this.options.defaultLocation || this.targetLocationTypes.length > 0 ? this.targetLocationTypes[0] : undefined;
return this.options.defaultLocation || (this.targetLocationTypes.length > 0 ? this.targetLocationTypes[0] : undefined);
}
/**