Fix clearFilters to reset bookKeys instead of books to avoid undefined includes error.
This commit is contained in:
@@ -182,7 +182,7 @@ export default function SearchPage() {
|
|||||||
const clearFilters = () => {
|
const clearFilters = () => {
|
||||||
setFilters({
|
setFilters({
|
||||||
testament: 'all',
|
testament: 'all',
|
||||||
books: [],
|
bookKeys: [],
|
||||||
exactMatch: false,
|
exactMatch: false,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user