File tree Expand file tree Collapse file tree 1 file changed +18
-11
lines changed
projects/saas-ui/src/app/main/components/manage-plans Expand file tree Collapse file tree 1 file changed +18
-11
lines changed Original file line number Diff line number Diff line change @@ -102,21 +102,28 @@ export class ManagePlansComponent extends RouteComponentBaseDirective {
102
102
map ( res => {
103
103
try {
104
104
// const body = JSON.parse(JSON.stringify(res)).body;
105
- // this.getResp = body ;
106
- const rows = res . map ( item => {
105
+ this . getResp = res ;
106
+ const rows = this . getResp . map ( item => {
107
107
return {
108
108
id : item . id ,
109
109
name : item . name ,
110
110
description : item . description ,
111
- cycleName : item [ 'billingCycle' ]
112
- ? item [ 'billingCycle' ] . cycleName
113
- : '' ,
114
- currencyName : item [ 'currency' ]
115
- ? item [ 'currency' ] . currencyName
116
- : '' ,
117
- price : item . price ,
118
- } ;
119
- } ) ;
111
+ // cycleName: item['billingCycle']
112
+ // ? item['billingCycle'].cycleName
113
+ // : '',
114
+ // currencyName: item['currency']
115
+ // ? item['currency'].currencyName
116
+ // : '',
117
+ // price: item.price,
118
+ // };
119
+ // });
120
+ cycleName : item [ 'billingCycle' ] ?. cycleName ,
121
+
122
+ currencyName : item [ 'currency' ] ?. currencyName ,
123
+
124
+ price : item . price ,
125
+ } ;
126
+ } ) ;
120
127
121
128
return rows ;
122
129
} catch ( error ) {
You can’t perform that action at this time.
0 commit comments