From: Nizamudeen A Date: Sun, 4 Sep 2022 05:52:45 +0000 (+0530) Subject: mgr/dashboard: fix Cannot read properties of undefined (reading 'filter') X-Git-Tag: v18.0.0~66^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a3f601b5e7a4f90712a5fc3e6807c67f2b3ed061;p=ceph.git mgr/dashboard: fix Cannot read properties of undefined (reading 'filter') Fixes: https://tracker.ceph.com/issues/57434 Signed-off-by: Nizamudeen A --- 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 83bb099fb415..bd007eba5194 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']); }