- 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 LastRowCell = ({columnId, lastRowCfg, columnMeta = {}, tableValue = []}) => {
|
||||||
const cellData = head(lastRowCfg.filter(o => !isNil(o[columnId])));
|
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];
|
let cellValue = cellData[columnId];
|
||||||
|
|
||||||
if (columnMeta.enableFormula) {
|
if (columnMeta.enableFormula) {
|
||||||
cellValue = pathOr(0, ['total'], tableValue);
|
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;
|
export default LastRowCell;
|
||||||
@@ -242,9 +242,7 @@ const DomandeTablePreInstructorAsync = ({ userId = null, statuses = [] }) => {
|
|||||||
AssignedApplicationService.assignApplicationPaginated(paginationQuery, getCallback, errGetCallbacks);
|
AssignedApplicationService.assignApplicationPaginated(paginationQuery, getCallback, errGetCallbacks);
|
||||||
}
|
}
|
||||||
}, [lazyState]);
|
}, [lazyState]);
|
||||||
|
|
||||||
console.log(items)
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="appPageSection__table">
|
<div className="appPageSection__table">
|
||||||
<DataTable
|
<DataTable
|
||||||
|
|||||||
Reference in New Issue
Block a user