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(() => {
258258
259259 const fields = Array .isArray (props .filterFields ) ? props .filterFields : [props .labelKey ] as string []
260260
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' ) {
263267 return contains (String (item ), searchTerm .value )
264268 }
265269
Original file line number Diff line number Diff line change @@ -260,7 +260,11 @@ const filteredGroups = computed(() => {
260260 const fields = Array .isArray (props .filterFields ) ? props .filterFields : [props .labelKey ] as string []
261261
262262 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' ) {
264268 return contains (String (item ), searchTerm .value )
265269 }
266270
You can’t perform that action at this time.
0 commit comments