Fixed an issue where the size displayed as 'NaN B' for all databases in the statistics tab. #7524

This commit is contained in:
Akshay Joshi 2024-06-03 17:09:50 +05:30
parent 6509e45b6f
commit 29a526626f
2 changed files with 3 additions and 2 deletions

View File

@ -29,4 +29,5 @@ Bug fixes
*********
| `Issue #5785 <https://github.com/pgadmin-org/pgadmin4/issues/5785>`_ - Fix an issue where user authentication fails with special characters in password.
| `Issue #7480 <https://github.com/pgadmin-org/pgadmin4/issues/7480>`_ - Fixed an issue where canceling a query without privilege does not display any message on query tool.
| `Issue #7480 <https://github.com/pgadmin-org/pgadmin4/issues/7480>`_ - Fixed an issue where canceling a query without privilege does not display any message on query tool.
| `Issue #7524 <https://github.com/pgadmin-org/pgadmin4/issues/7524>`_ - Fixed an issue where the size displayed as 'NaN B' for all databases in the statistics tab.

View File

@ -89,7 +89,7 @@ function getColumn(data, singleLineStatistics, prettifyFields=[]) {
columns.forEach((c)=>{
// Prettify the cell view
if(prettifyFields.includes(c.header)) {
c.cell = ({value})=><>{toPrettySize(value)}</>;
c.cell = ({cell})=><>{toPrettySize(cell.getValue())}</>;
c.cell.displayName = 'Cell';
c.cell.propTypes = {
value: PropTypes.any,