diff --git a/superset-frontend/src/features/databases/DatabaseModal/index.tsx b/superset-frontend/src/features/databases/DatabaseModal/index.tsx index 10ae7a82ccd6e..cf849ca496fd7 100644 --- a/superset-frontend/src/features/databases/DatabaseModal/index.tsx +++ b/superset-frontend/src/features/databases/DatabaseModal/index.tsx @@ -1335,7 +1335,7 @@ const DatabaseModal: FunctionComponent = ({ useEffect(() => { if (importingModal) { document - .getElementsByClassName('ant-upload-list-item-name')[0] + ?.getElementsByClassName('ant-upload-list-item-name')[0] .scrollIntoView(); } }, [importingModal]);