fix typo in methods.js (#1258)

https://github.com/tannerlinsley/react-table/issues/1257
This commit is contained in:
Jan Bauer
2019-02-07 18:05:54 +01:00
committed by Tanner Linsley
parent 410417d067
commit 82cf099d80

View File

@@ -44,7 +44,7 @@ export default Base =>
col => col.expander || (col.columns && col.columns.some(col2 => col2.expander))
)
f (expanderColumn && !expanderColumn.expander) {
if (expanderColumn && !expanderColumn.expander) {
expanderColumn = expanderColumn.columns.find(col => col.expander)
}
// If we have SubComponent's we need to make sure we have an expander column