- fixed bug in JS;
This commit is contained in:
@@ -3,13 +3,15 @@ import getNumberFormatted from '../../../../../../../helpers/getNumberFormatted'
|
||||
|
||||
const LastRowCell = ({columnId, lastRowCfg, columnMeta = {}, tableValue = []}) => {
|
||||
const cellData = head(lastRowCfg.filter(o => !isNil(o[columnId])));
|
||||
console.log('LastRowCell Rendered', {columnId, lastRowCfg, columnMeta, tableValue});
|
||||
console.log('cellData', cellData)
|
||||
let cellValue = cellData[columnId];
|
||||
|
||||
if (columnMeta.enableFormula) {
|
||||
cellValue = pathOr(0, ['total'], tableValue);
|
||||
}
|
||||
|
||||
return <td>{is(Number, cellValue) ? getNumberFormatted(cellValue) : cellValue}</td>;
|
||||
return <td>{cellValue && is(Number, cellValue) ? getNumberFormatted(cellValue) : cellValue}</td>;
|
||||
};
|
||||
|
||||
export default LastRowCell;
|
||||
@@ -242,9 +242,7 @@ const DomandeTablePreInstructorAsync = ({ userId = null, statuses = [] }) => {
|
||||
AssignedApplicationService.assignApplicationPaginated(paginationQuery, getCallback, errGetCallbacks);
|
||||
}
|
||||
}, [lazyState]);
|
||||
|
||||
console.log(items)
|
||||
|
||||
|
||||
return (
|
||||
<div className="appPageSection__table">
|
||||
<DataTable
|
||||
|
||||
Reference in New Issue
Block a user