Skip to content

Commit aeee649

Browse files
committed
mgr/dashboard: undefined while creating rbd image
this only happens on a fresh cluster but consistently reproducible in a test environment. also cephfs also throws some error occasionally which is also being handled similarly Fixes: https://tracker.ceph.com/issues/68871 Signed-off-by: Nizamudeen A <[email protected]>
1 parent a80aa1a commit aeee649

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
<ng-template #ScheduleTpl
5656
let-value="data.value"
5757
let-row="data.row">
58-
<span *ngIf="value.length === 3"
58+
<span *ngIf="value?.length === 3"
5959
class="badge badge-info">{{ value[2] | cdDate }}</span>
6060
</ng-template>
6161

src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-tabs/cephfs-tabs.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ export class CephfsTabsComponent implements OnChanges, OnDestroy {
112112
softRefresh() {
113113
const data = _.cloneDeep(this.data); // Forces update of tab tables on tab switch
114114
// Clients tab
115-
this.clients = data.clients;
116-
this.clients.status = new TableStatusViewCache(this.clients.status);
115+
this.clients = data?.clients;
116+
this.clients.status = new TableStatusViewCache(this.clients?.status);
117117
// Details tab
118118
this.details = {
119119
standbys: data.standbys,

0 commit comments

Comments
 (0)