fix: URI form is blank when trying to connect from sql lab (#20004)

This commit is contained in:
Diego Medina 2022-05-10 20:57:11 -04:00 committed by GitHub
parent 7b7de9592b
commit cc026e9fec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,6 +18,7 @@
*/
import {
t,
styled,
SupersetTheme,
FeatureFlag,
isFeatureEnabled,
@ -96,6 +97,18 @@ const engineSpecificAlertMapping = {
},
};
const TabsStyled = styled(Tabs)`
.ant-tabs-content {
display: flex;
width: 100%;
overflow: inherit;
& > .ant-tabs-tabpane {
position: relative;
}
}
`;
const googleSheetConnectionEngine = 'gsheets';
interface DatabaseModalProps {
@ -1232,7 +1245,7 @@ const DatabaseModal: FunctionComponent<DatabaseModalProps> = ({
/>
</TabHeader>
</StyledStickyHeader>
<Tabs
<TabsStyled
defaultActiveKey={DEFAULT_TAB_KEY}
activeKey={tabKey}
onTabClick={tabChange}
@ -1385,7 +1398,7 @@ const DatabaseModal: FunctionComponent<DatabaseModalProps> = ({
/>
{showDBError && errorAlert()}
</Tabs.TabPane>
</Tabs>
</TabsStyled>
</Modal>
) : (
<Modal
@ -1421,7 +1434,7 @@ const DatabaseModal: FunctionComponent<DatabaseModalProps> = ({
</>
) : (
<>
{/* Dyanmic Form Step 1 */}
{/* Dynamic Form Step 1 */}
{!isLoading &&
(!db ? (
<SelectDatabaseStyles>