mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-10-04 12:36:44 -05:00
Ensure that the values of certain fields are prettified in the statistics tab for collection nodes. Fixes #7216
This commit is contained in:
1 parent
e7dc6df723
commit
ba027e992e
5 files changed
+11
-4
No files matched your search
@@ -92,6 +92,12 @@ function getTableData(res, node) {
|
||||
let data = res.data.data;
|
||||
if (node.hasCollectiveStatistics || data['rows'].length > 1) {
|
||||
data.rows.forEach((row) => {
|
||||
// Prettify the field values
|
||||
if (!_.isEmpty(node.statsPrettifyFields)) {
|
||||
node.statsPrettifyFields.forEach((field) => {
|
||||
row[field] = sizePrettify(row[field]);
|
||||
});
|
||||
};
|
||||
nodeStats.push({ ...row, icon: '' });
|
||||
});
|
||||
colData = getColumn(data.columns, false);
|
||||
|
||||
Reference in new issue
Block a user