File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -258,8 +258,12 @@ const filteredGroups = computed(() => {
258
258
259
259
const fields = Array .isArray (props .filterFields ) ? props .filterFields : [props .labelKey ] as string []
260
260
261
- return groups .value .map (group => group .filter ((item ) => {
262
- if (typeof item !== ' object' || item === null ) {
261
+ return groups .value .map (items => items .filter ((item ) => {
262
+ if (item === undefined || item === null ) {
263
+ return false
264
+ }
265
+
266
+ if (typeof item !== ' object' ) {
263
267
return contains (String (item ), searchTerm .value )
264
268
}
265
269
Original file line number Diff line number Diff line change @@ -260,7 +260,11 @@ const filteredGroups = computed(() => {
260
260
const fields = Array .isArray (props .filterFields ) ? props .filterFields : [props .labelKey ] as string []
261
261
262
262
return groups .value .map (items => items .filter ((item ) => {
263
- if (typeof item !== ' object' || item === null ) {
263
+ if (item === undefined || item === null ) {
264
+ return false
265
+ }
266
+
267
+ if (typeof item !== ' object' ) {
264
268
return contains (String (item ), searchTerm .value )
265
269
}
266
270
You can’t perform that action at this time.
0 commit comments