From b75055ef381d52fcf42e6ef4d4156efbf900c8f4 Mon Sep 17 00:00:00 2001 From: andreaci Date: Fri, 15 Feb 2019 21:17:29 +0100 Subject: [PATCH] BUG in resize columns (#1271) * BUG in resize columns * rows shorter than 100 chars... * Revert "rows shorter than 100 chars..." This reverts commit b32f17a2fe8736fe276b5026997837e6f02ec909. --- src/methods.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/methods.js b/src/methods.js index 4836b97..8207aa2 100644 --- a/src/methods.js +++ b/src/methods.js @@ -627,7 +627,7 @@ export default Base => const { onResizedChange, column } = this.props const { resized, currentlyResizing, columns } = this.getResolvedState() const currentColumn = columns.find(c => c.accessor === currentlyResizing.id) - const minResizeWidth = currentColumn ? currentColumn.minResizeWidth : column.minResizeWidth + const minResizeWidth = currentColumn && currentColumn.minResizeWidth != null ? currentColumn.minResizeWidth : column.minResizeWidth // Delete old value const newResized = resized.filter(x => x.id !== currentlyResizing.id)