]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: if null tablecontext then create empty one
authorPere Diaz Bou <pdiazbou@redhat.com>
Tue, 28 Jun 2022 13:58:11 +0000 (15:58 +0200)
committerPere Diaz Bou <pdiazbou@redhat.com>
Fri, 9 Sep 2022 17:30:24 +0000 (19:30 +0200)
Signed-off-by: Pere Diaz Bou <pdiazbou@redhat.com>
(cherry picked from commit 4060061014506ed1edd32936f54ed46d489c0f11)
(cherry picked from commit d80a53bd477a44d2de11d1c787b043c28f3bfd07)

Resolves: rhbz#2125432

src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-list/rbd-list.component.ts

index f9729ad5f497a11477f6c141bfc2f71d84e4862a..23dd249a7d0e043c0332412d3e095130dd537892 100644 (file)
@@ -366,6 +366,9 @@ export class RbdListComponent extends ListWithDetails implements OnInit {
     if (context !== null) {
       this.tableContext = context;
     }
+               if(this.tableContext == null) {
+                       this.tableContext = new CdTableFetchDataContext(() => {});
+               }
     return this.rbdService.list(this.tableContext.toParams());
   }