luizotavio32 commented on code in PR #34763:
URL: https://github.com/apache/superset/pull/34763#discussion_r2289709259
##########
superset-frontend/src/features/databases/UploadDataModel/index.tsx:
##########
@@ -222,6 +222,7 @@ const UploadDataModal:
FunctionComponent<UploadDataModalProps> = ({
}) => {
const [form] = Form.useForm();
const [currentDatabaseId, setCurrentDatabaseId] = useState<number>(0);
+ const [databases, setDatabases] = useState<any[]>([]);
Review Comment:
Created an interface/object for currentDatabase, containing the id (value)
and label (database_name)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]