From: Pere Diaz Bou Date: Tue, 28 Jun 2022 13:58:11 +0000 (+0200) Subject: mgr/dashboard: if null tablecontext then create empty one X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=dc7d820145364e73c7664461de66cc454007cae7;p=ceph.git mgr/dashboard: if null tablecontext then create empty one Signed-off-by: Pere Diaz Bou (cherry picked from commit 4060061014506ed1edd32936f54ed46d489c0f11) (cherry picked from commit d80a53bd477a44d2de11d1c787b043c28f3bfd07) Resolves: rhbz#2125432 --- 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 f9729ad5f497a..23dd249a7d0e0 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()); }