]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Search broken for entries with null values 26766/head
authorPatrick Nawracay <pnawracay@suse.com>
Tue, 5 Mar 2019 11:33:44 +0000 (12:33 +0100)
committerPatrick Nawracay <pnawracay@suse.com>
Tue, 5 Mar 2019 11:43:18 +0000 (11:43 +0000)
Fixes: http://tracker.ceph.com/issues/38583
Signed-off-by: Patrick Nawracay <pnawracay@suse.com>
src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table/table.component.ts

index efb2644d00c420102b786eb4d3894e126d2514f9..5052a93cf317a998322951b7ec59b50d758374d9 100644 (file)
@@ -520,8 +520,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(' ');