Skip to content

Commit

Permalink
fix: URI form is blank when trying to connect from sql lab (apache#20004
Browse files Browse the repository at this point in the history
)
  • Loading branch information
diegomedina248 authored and philipher29 committed Jun 9, 2022
1 parent 2af630f commit a4e0021
Showing 1 changed file with 16 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
*/
import {
t,
styled,
SupersetTheme,
FeatureFlag,
isFeatureEnabled,
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -1232,7 +1245,7 @@ const DatabaseModal: FunctionComponent<DatabaseModalProps> = ({
/>
</TabHeader>
</StyledStickyHeader>
<Tabs
<TabsStyled
defaultActiveKey={DEFAULT_TAB_KEY}
activeKey={tabKey}
onTabClick={tabChange}
Expand Down Expand Up @@ -1385,7 +1398,7 @@ const DatabaseModal: FunctionComponent<DatabaseModalProps> = ({
/>
{showDBError && errorAlert()}
</Tabs.TabPane>
</Tabs>
</TabsStyled>
</Modal>
) : (
<Modal
Expand Down Expand Up @@ -1421,7 +1434,7 @@ const DatabaseModal: FunctionComponent<DatabaseModalProps> = ({
</>
) : (
<>
{/* Dyanmic Form Step 1 */}
{/* Dynamic Form Step 1 */}
{!isLoading &&
(!db ? (
<SelectDatabaseStyles>
Expand Down

0 comments on commit a4e0021

Please sign in to comment.