mgr/dashboard: if null tablecontext then create empty one

Signed-off-by: Pere Diaz Bou <pdiazbou@redhat.com>
This commit is contained in:
Pere Diaz Bou 2022-06-28 15:58:11 +02:00
parent 27f40514eb
commit 4060061014

View 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());
}