From a3f601b5e7a4f90712a5fc3e6807c67f2b3ed061 Mon Sep 17 00:00:00 2001 From: Nizamudeen A Date: Sun, 4 Sep 2022 11:22:45 +0530 Subject: [PATCH] mgr/dashboard: fix Cannot read properties of undefined (reading 'filter') Fixes: https://tracker.ceph.com/issues/57434 Signed-off-by: Nizamudeen A --- .../cluster/services/service-form/service-form.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/service-form/service-form.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/service-form/service-form.component.ts index 83bb099fb41..bd007eba519 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/service-form/service-form.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/service-form/service-form.component.ts @@ -485,7 +485,7 @@ export class ServiceFormComponent extends CdForm implements OnInit { getServiceIds(selectedServiceType: string) { this.serviceIds = this.serviceList - .filter((service) => service['service_type'] === selectedServiceType) + ?.filter((service) => service['service_type'] === selectedServiceType) .map((service) => service['service_id']); }