Skip to content

Commit dfba73a

Browse files
Jim KekoniusWurper
Jim Kekonius
authored andcommitted
NOREF - cosmoz-omnitable-column-list - added null check for filter in filterChanged
1 parent 48bcd0e commit dfba73a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cosmoz-omnitable-column-list.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,8 @@
117117

118118
_filterChanged(filter, autoItems) {
119119
const items = this.autocompleteSelectedItems;
120-
if (!Array.isArray(autoItems)
120+
if (!Array.isArray(filter)
121+
|| !Array.isArray(autoItems)
121122
|| Array.isArray(items)
122123
&& items.length === this.filter.length
123124
&& filter.every((f, i) => items[i] instanceof Object && f === items[i][this.valueProperty] || items[i] === f)) {

0 commit comments

Comments
 (0)