From bdff5fa839f5632fd4c3ab3d77b307977fba66ef Mon Sep 17 00:00:00 2001 From: Gabriel Liwerant Date: Tue, 1 Oct 2019 03:51:16 -0400 Subject: [PATCH] Allow sort direction of "none" to be applied multiple times --- src/MUIDataTable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MUIDataTable.js b/src/MUIDataTable.js index d0fe3d5fb..f9c280b95 100644 --- a/src/MUIDataTable.js +++ b/src/MUIDataTable.js @@ -413,7 +413,7 @@ class MUIDataTable extends React.Component { column.options.sortDirection = 'none'; } - if (column.options.sortDirection !== undefined) { + if (column.options.sortDirection !== undefined && column.options.sortDirection !== 'none') { if (sortDirectionSet) { console.error('sortDirection is set for more than one column. Only the first column will be considered.'); column.options.sortDirection = 'none';