From: Patrick Nawracay Date: Tue, 5 Mar 2019 11:33:44 +0000 (+0100) Subject: mgr/dashboard: Search broken for entries with null values X-Git-Tag: v13.2.6~111^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F26944%2Fhead;p=ceph.git 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. --- 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(' ');