From ebe635d0affbd26f6fe85075201bbb943b7b2056 Mon Sep 17 00:00:00 2001 From: Pere Diaz Bou Date: Tue, 28 Jun 2022 15:58:11 +0200 Subject: [PATCH] mgr/dashboard: if null tablecontext then create empty one Signed-off-by: Pere Diaz Bou (cherry picked from commit 4060061014506ed1edd32936f54ed46d489c0f11) --- .../frontend/src/app/ceph/block/rbd-list/rbd-list.component.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-list/rbd-list.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-list/rbd-list.component.ts index f9729ad5f49..23dd249a7d0 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-list/rbd-list.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-list/rbd-list.component.ts @@ -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()); } -- 2.47.3