- new flow;
This commit is contained in:
@@ -2,7 +2,7 @@ import { head, is, isNil, pathOr } from 'ramda';
|
||||
import getNumberFormatted from '../../../../../../../helpers/getNumberFormatted';
|
||||
|
||||
const LastRowCell = ({columnId, lastRowCfg, columnMeta = {}, tableValue = []}) => {
|
||||
const cellData = head(lastRowCfg.filter(o => !isNil(o[columnId])));
|
||||
const cellData = pathOr({}, [], head(lastRowCfg.filter(o => !isNil(o[columnId]))));
|
||||
let cellValue = cellData[columnId];
|
||||
|
||||
if (columnMeta.enableFormula) {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { head, isNil, sum } from 'ramda';
|
||||
import { head, isNil, pathOr, sum } from 'ramda';
|
||||
import getNumberFormatted from '../../../../../../../helpers/getNumberFormatted';
|
||||
import parseLocaleNumber from '../../../../../../../helpers/parseLocaleNumber';
|
||||
|
||||
const LastRowCell = ({columnId, lastRowCfg, columnMeta = {}, getColumnDataFn}) => {
|
||||
const cellData = head(lastRowCfg.filter(o => !isNil(o[columnId])));
|
||||
const cellData = pathOr({}, [], head(lastRowCfg.filter(o => !isNil(o[columnId]))));
|
||||
let cellValue = cellData[columnId];
|
||||
|
||||
if (columnMeta.enableFormula) {
|
||||
|
||||
Reference in New Issue
Block a user