]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: undefined while creating rbd image
authorNizamudeen A <nia@redhat.com>
Mon, 10 Feb 2025 04:37:28 +0000 (10:07 +0530)
committerNizamudeen A <nia@redhat.com>
Thu, 13 Mar 2025 04:47:18 +0000 (10:17 +0530)
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 <nia@redhat.com>
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-list/rbd-list.component.html
src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-tabs/cephfs-tabs.component.ts

index 9cd8e0a7d7e85aa98193e938b71604043dbbcd3c..b1f36967d70cda1eaa202a680b0a1c15f2d7abf4 100644 (file)
@@ -55,7 +55,7 @@
 <ng-template #ScheduleTpl
              let-value="data.value"
              let-row="data.row">
-  <span *ngIf="value.length === 3"
+  <span *ngIf="value?.length === 3"
         class="badge badge-info">{{ value[2] | cdDate  }}</span>
 </ng-template>
 
index 404ec20aac2829ed9b732cdad357e5d004bdedb7..09c03e70d17204517b57eb5b57b4c261712dbd86 100644 (file)
@@ -112,8 +112,8 @@ export class CephfsTabsComponent implements OnChanges, OnDestroy {
   softRefresh() {
     const data = _.cloneDeep(this.data); // Forces update of tab tables on tab switch
     // Clients tab
-    this.clients = data.clients;
-    this.clients.status = new TableStatusViewCache(this.clients.status);
+    this.clients = data?.clients;
+    this.clients.status = new TableStatusViewCache(this.clients?.status);
     // Details tab
     this.details = {
       standbys: data.standbys,