]> 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>
Tue, 12 Jul 2022 17:09:02 +0000 (19:09 +0200)
Signed-off-by: Pere Diaz Bou <pdiazbou@redhat.com>
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());
   }