mirror of
https://github.com/discourse/discourse-subscriptions.git
synced 2025-07-08 15:22:46 +00:00
FIX: Single subscription was not correctly selected
This commit is contained in:
parent
a1a7ca98a3
commit
739296bc72
@ -1,7 +1,7 @@
|
|||||||
import Component from "@ember/component";
|
import Component from "@ember/component";
|
||||||
|
|
||||||
export default Component.extend({
|
export default Component.extend({
|
||||||
init() {
|
didInsertElement() {
|
||||||
this._super(...arguments);
|
this._super(...arguments);
|
||||||
if (this.plans && this.plans.length === 1) {
|
if (this.plans && this.plans.length === 1) {
|
||||||
this.set("selectedPlan", this.plans[0].id);
|
this.set("selectedPlan", this.plans[0].id);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user