mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Continue fixing multiple UI and SonarQube issues found when testing wcDocker changes. #6479
This commit is contained in:
@@ -55,29 +55,17 @@ const useStyles = makeStyles((theme) => ({
|
||||
}));
|
||||
|
||||
function getColumn(data, singleLineStatistics, prettifyFields=[]) {
|
||||
let columns = [], column;
|
||||
let columns = [];
|
||||
if (!singleLineStatistics) {
|
||||
if (!_.isUndefined(data)) {
|
||||
data.forEach((row) => {
|
||||
if (row.name == gettext('Total Size')) {
|
||||
column = {
|
||||
Header: row.name,
|
||||
accessor: row.name,
|
||||
sortable: true,
|
||||
resizable: true,
|
||||
disableGlobalFilter: false,
|
||||
};
|
||||
}else{
|
||||
column = {
|
||||
Header: row.name,
|
||||
accessor: row.name,
|
||||
sortable: true,
|
||||
resizable: true,
|
||||
disableGlobalFilter: false,
|
||||
};
|
||||
|
||||
}
|
||||
columns.push(column);
|
||||
columns.push({
|
||||
Header: row.name,
|
||||
accessor: row.name,
|
||||
sortable: true,
|
||||
resizable: true,
|
||||
disableGlobalFilter: false,
|
||||
});
|
||||
});
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user