Customer features werden nicht angezugt wenn disabled oder keine description

This commit is contained in:
Lorenz Hilpert
2020-09-17 16:26:30 +02:00
parent e2af856a24
commit 824f3babc4

View File

@@ -38,7 +38,8 @@ export class CustomerFeaturesComponent {
)
),
filter((customer) => !!customer),
map((customer) => customer.features || [])
map((customer) => customer.features || []),
map((features) => features.filter((f) => f.enabled && !!f.description))
);
constructor(private customerService: CustomerService) {}