Continue fixing multiple UI and SonarQube issues found when testing wcDocker changes. #6479

This commit is contained in:
Aditya Toshniwal
2023-10-30 16:57:01 +05:30
parent 4bc6dcca67
commit e30d2eca90
10 changed files with 65 additions and 57 deletions

View File

@@ -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 {