Fixed permission names in front end as they have to be kebab cased

This commit is contained in:
2020-05-30 10:29:23 +05:30
parent 1a553146e2
commit a5fcb2026c
25 changed files with 34 additions and 57 deletions

View File

@ -16,19 +16,19 @@ export class CashFlow {
static Data(value): CashFlowItem[] {
const d: CashFlowItem[] = [];
if (value.body.operating && value.body.operating.length) {
if (value.body.operating?.length) {
d.push(new CashFlowItem('Cash flows from Operating activities'));
d.push(...value.body.operating);
}
if (value.body.investing && value.body.investing.length) {
if (value.body.investing?.length) {
d.push(new CashFlowItem('Cash flows from Investing activities'));
d.push(...value.body.investing);
}
if (value.body.financing && value.body.financing.length) {
if (value.body.financing?.length) {
d.push(new CashFlowItem('Cash flows from Financing activities'));
d.push(...value.body.financing);
}
if (value.body.details && value.body.details.length) {
if (value.body.details?.length) {
d.push(...value.body.details);
}
return d;