Skip to content
This repository was archived by the owner on May 4, 2019. It is now read-only.

Commit cbf4f92

Browse files
committed
fix(filter models): filter models now build
1 parent f03297d commit cbf4f92

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Filter/FilterModels.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ export function advFilterCategorySelect(
3636
const newCategory = { ...selectedCat };
3737
const options = newCategory.filterOptions.slice();
3838
const allPressed =
39-
option.filterType === undefined && newCategory.displayAllButton;
39+
(option === undefined || option.filterType === undefined) &&
40+
newCategory.displayAllButton;
4041

4142
if (!newCategory.disabled) {
4243
if (allPressed) {

0 commit comments

Comments
 (0)