diff --git a/packages/components/select-v2/src/useSelect.ts b/packages/components/select-v2/src/useSelect.ts index fe240fa982..beb8928ebc 100644 --- a/packages/components/select-v2/src/useSelect.ts +++ b/packages/components/select-v2/src/useSelect.ts @@ -146,7 +146,7 @@ const useSelect = (props: ExtractPropTypes, emit) => { // fill the conditions here. const query = states.inputValue // when query was given, we should test on the label see whether the label contains the given query - const containsQueryString = query ? o.label.includes(query) : true + const containsQueryString = query ? o.label?.includes(query) : true return containsQueryString } if (props.loading) {