0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00

Fixed cancel button on tier modal with free trials

refs https://github.com/TryGhost/Team/issues/1724
This commit is contained in:
Rishabh 2022-08-05 18:34:19 +05:30
parent 1f9fadf4c7
commit a016834427

View file

@ -145,10 +145,10 @@ export default class ModalTierPrice extends ModalBase {
}
reset() {
this.tier.rollbackAttributes();
this.newBenefit = TierBenefitItem.create({isNew: true, name: ''});
const finalBenefits = this.savedBenefits || emberA([]);
this.tier.set('benefits', finalBenefits);
this.tier.rollbackAttributes();
}
@task({drop: true})