Skip to content

Commit

Permalink
Fix empty selector
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Sep 12, 2021
1 parent df1849b commit 149e119
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/select/match.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const getCombinationId = function ({ id }) {
const isEmpty = function (selectors) {
return (
selectors.length === 0 ||
(selectors.length === 1 && selectors[0].intersect.length === 0)
(selectors.length === 1 && selectors[0].intersect.flat().length === 0)
)
}

Expand Down

0 comments on commit 149e119

Please sign in to comment.