diff --git a/src/components/FormField/components/CriteriaTable/RenderTable/components/LastRowCell/index.js b/src/components/FormField/components/CriteriaTable/RenderTable/components/LastRowCell/index.js index 73d987c..e4a7f75 100644 --- a/src/components/FormField/components/CriteriaTable/RenderTable/components/LastRowCell/index.js +++ b/src/components/FormField/components/CriteriaTable/RenderTable/components/LastRowCell/index.js @@ -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 {is(Number, cellValue) ? getNumberFormatted(cellValue) : cellValue}; + return {cellValue && is(Number, cellValue) ? getNumberFormatted(cellValue) : cellValue}; }; export default LastRowCell; \ No newline at end of file diff --git a/src/pages/DashboardPreInstructor/components/DomandeTablePreInstructorAsync/index.js b/src/pages/DashboardPreInstructor/components/DomandeTablePreInstructorAsync/index.js index 6870a7e..6b12650 100644 --- a/src/pages/DashboardPreInstructor/components/DomandeTablePreInstructorAsync/index.js +++ b/src/pages/DashboardPreInstructor/components/DomandeTablePreInstructorAsync/index.js @@ -242,9 +242,7 @@ const DomandeTablePreInstructorAsync = ({ userId = null, statuses = [] }) => { AssignedApplicationService.assignApplicationPaginated(paginationQuery, getCallback, errGetCallbacks); } }, [lazyState]); - - console.log(items) - + return (