From 518a1823ee3cf68c25bad4a576ba382800bb4699 Mon Sep 17 00:00:00 2001 From: Pedro Guedes Date: Sat, 28 Dec 2019 16:11:12 -0300 Subject: [PATCH] fix: pass actual text to footerFormatter instead of column array --- packages/react-bootstrap-table2/src/footer-cell.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-bootstrap-table2/src/footer-cell.js b/packages/react-bootstrap-table2/src/footer-cell.js index e47ad0ae0..f5807cb4d 100644 --- a/packages/react-bootstrap-table2/src/footer-cell.js +++ b/packages/react-bootstrap-table2/src/footer-cell.js @@ -54,7 +54,7 @@ class FooterCell extends eventDelegater(React.Component) { if (cellClasses) cellAttrs.className = cs(cellAttrs.className, cellClasses); if (!_.isEmptyObject(cellStyle)) cellAttrs.style = cellStyle; - const children = footerFormatter ? footerFormatter(column, index) : text; + const children = footerFormatter ? footerFormatter(text, index) : text; return React.createElement('th', cellAttrs, children); }