Skip to content

Commit c03fa94

Browse files
committed
fix(arc-saas): manage-comp- test
manage-comp- test GH-64
1 parent e6fe3c6 commit c03fa94

File tree

1 file changed

+18
-11
lines changed

1 file changed

+18
-11
lines changed

projects/saas-ui/src/app/main/components/manage-plans/manage-plans.component.ts

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -102,21 +102,28 @@ export class ManagePlansComponent extends RouteComponentBaseDirective {
102102
map(res => {
103103
try {
104104
// 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 => {
107107
return {
108108
id: item.id,
109109
name: item.name,
110110
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+
});
120127

121128
return rows;
122129
} catch (error) {

0 commit comments

Comments
 (0)