Skip to content

Commit 7dd9c3b

Browse files
spmorr01onmotion
authored andcommitted
Fix searchText undefined error
1 parent 8e99301 commit 7dd9c3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ export const AutocompleteDropdown = memo(
151151
}, [props.dataSet])
152152

153153
useEffect(() => {
154-
if (!searchText.length) {
154+
if (!searchText?.length) {
155155
setDataSet(props.dataSet)
156156
return
157157
}

0 commit comments

Comments
 (0)