radio card change (#12049)

* radio card change

* Clone the object

* freeze change description

* Change to deepClone
This commit is contained in:
Amir Omidi
2020-09-01 12:06:38 -07:00
committed by GitHub
parent 34e317a559
commit 7ceee95f52
3 changed files with 10 additions and 3 deletions

View File

@@ -83,7 +83,7 @@ export class ResourceTypePickerDialog extends DialogBase {
ariaLabel: localize('deploymentDialog.deploymentOptions', "Deployment options"),
width: '1100px'
}).component();
this._toDispose.push(this._cardGroup.onSelectionChanged((cardId: string) => {
this._toDispose.push(this._cardGroup.onSelectionChanged(({ cardId }) => {
const resourceType = resourceTypes.find(rt => { return rt.name === cardId; });
if (resourceType) {
this.selectResourceType(resourceType);