From 66cee186a3f1c7a905036d1eb71e996fdc239dcd Mon Sep 17 00:00:00 2001 From: Tanner Linsley Date: Fri, 27 Jan 2017 14:34:50 -0700 Subject: [PATCH] pivotBy prop now defaults to undefined --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index e131e97..0913509 100644 --- a/src/index.js +++ b/src/index.js @@ -28,7 +28,7 @@ export const ReactTableDefaults = { onSortingChange: undefined, // Pivoting - pivotBy: [], + pivotBy: undefined, pivotColumnWidth: 200, pivotValKey: '_pivotVal', pivotIDKey: '_pivotID', @@ -691,7 +691,7 @@ export default React.createClass({ getDataModel (nextProps, nextState) { const { columns, - pivotBy, + pivotBy = [], data, pivotIDKey, pivotValKey,