From 4a2cb72c97f9805536d0dce4364189fb7ae3ea84 Mon Sep 17 00:00:00 2001 From: Patrick Nawracay Date: Tue, 5 Mar 2019 12:33:44 +0100 Subject: [PATCH] mgr/dashboard: Search broken for entries with null values Fixes: http://tracker.ceph.com/issues/38583 Signed-off-by: Patrick Nawracay (cherry picked from commit ee988b90b84a484811b3351ff9eee242ae5b2ebd) Conflicts: - src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table/table.component.ts Modified the file to keep changes to relevant to this version. --- .../src/app/shared/datatable/table/table.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table/table.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table/table.component.ts index f2b03187e99..65b1ac0d79d 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table/table.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table/table.component.ts @@ -347,8 +347,8 @@ export class TableComponent implements AfterContentChecked, OnInit, OnChanges, O if (!_.isUndefined(c.pipe)) { cellValue = c.pipe.transform(cellValue); } - if (_.isUndefined(cellValue)) { - return; + if (_.isUndefined(cellValue) || _.isNull(cellValue)) { + return false; } if (_.isArray(cellValue)) { cellValue = cellValue.join(' '); -- 2.47.3