Skip to content
Permalink
Browse files

isAllRowsSelected can only be true if there are rows. (#1504)

  • Loading branch information...
Codar97 authored and tannerlinsley committed Sep 9, 2019
1 parent f829cd0 commit aea76facf16bf21e5487b92c5fb36f7072d599d4
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/plugin-hooks/useRowSelect.js
@@ -38,7 +38,7 @@ function useMain(instance) {
[]
)

const isAllRowsSelected = rowPaths.length === selectedRows.length
const isAllRowsSelected = rowPaths.length > 0 && rowPaths.length === selectedRows.length

const toggleRowSelectedAll = set => {
setState(old => {

0 comments on commit aea76fa

Please sign in to comment.
You can’t perform that action at this time.