]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Search broken for entries with null values 26944/head
authorPatrick Nawracay <pnawracay@suse.com>
Tue, 5 Mar 2019 11:33:44 +0000 (12:33 +0100)
committerAshish Singh <assingh@redhat.com>
Thu, 14 Mar 2019 07:21:08 +0000 (12:51 +0530)
Fixes: http://tracker.ceph.com/issues/38583
Signed-off-by: Patrick Nawracay <pnawracay@suse.com>
(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/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table/table.component.ts

index f2b03187e9997e48469ade359daaec0c75e860ac..65b1ac0d79d26537bf4376274c35e4bd11a4f078 100644 (file)
@@ -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(' ');