]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: fix table dom re-rendering 65111/head
authorNizamudeen A <nia@redhat.com>
Mon, 28 Jul 2025 08:22:36 +0000 (13:52 +0530)
committerNizamudeen A <nia@redhat.com>
Tue, 19 Aug 2025 05:44:28 +0000 (11:14 +0530)
commit8bc5d7904e2ec79192376649b5a44f0b2483a687
tree5796ba162eb95ab318b4b0e229920a414c3b1d81
parent45b7da1854912a288e36cd7a8f07182fe169811c
mgr/dashboard: fix table dom re-rendering

each table refresh creates a new data or update the existing data. this
causes the existing data to be completely replaced with a newer one and
thereby loosing the trackBy functionality. So I am modifying the data
in-place so that the memory reference doesn't get changed

Fixes: https://tracker.ceph.com/issues/72491
Signed-off-by: Nizamudeen A <nia@redhat.com>
(cherry picked from commit 2989cb99df7b24cfc8c2302bee52cdb4d6bf33e8)
src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table/table.component.ts