fix: add null checks (#14722)

This commit is contained in:
Karan Hotchandani 2024-01-16 15:43:50 +05:30 committed by GitHub
parent 64a4e1afce
commit 5f293f6400
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,7 +29,7 @@ const AsyncSelectWidget = ({ onChange, schema, ...props }: WidgetProps) => {
return (
<DataAssetAsyncSelectList
defaultValue={props.value.fullyQualifiedName ?? ''}
defaultValue={props?.value?.fullyQualifiedName ?? ''}
placeholder={schema.placeholder ?? ''}
searchIndex={schema?.autoCompleteType ?? SearchIndex.TABLE}
onChange={handleChange}