BUG in resize columns (#1271)

* BUG in resize columns

* rows shorter than 100 chars...

* Revert "rows shorter than 100 chars..."

This reverts commit b32f17a2fe8736fe276b5026997837e6f02ec909.
This commit is contained in:
andreaci 2019-02-15 21:17:29 +01:00 committed by tannerlinsley
parent 1079914996
commit b75055ef38

View File

@ -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)