Skip to content

Commit

Permalink
QA
Browse files Browse the repository at this point in the history
  • Loading branch information
andres-torres-marroquin committed Jan 15, 2025
1 parent a76b86b commit 4c8505d
Showing 1 changed file with 8 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,43 +95,21 @@ const ConnectionForm = ({ connectionConfig, systemFidesKey }: Props) => {
onClose={uploadTemplateModal.onClose}
/>
</Flex>

{selectedConnectionOption?.type === SystemType.DATABASE ? (
{selectedConnectionOption?.type &&
[SystemType.DATABASE, SystemType.DATA_CATALOG].includes(
selectedConnectionOption.type,
) ? (
<ConnectorParameters
connectionConfig={connectionConfig}
setSelectedConnectionOption={setSelectedConnectionOption}
connectionOption={selectedConnectionOption}
systemFidesKey={systemFidesKey}
/>
) : null}
{selectedConnectionOption?.type === SystemType.DATA_CATALOG ? (
<ConnectorParameters
connectionConfig={connectionConfig}
setSelectedConnectionOption={setSelectedConnectionOption}
connectionOption={selectedConnectionOption}
systemFidesKey={systemFidesKey}
/>
) : null}
{selectedConnectionOption?.type === SystemType.SAAS &&
selectedConnectionOption ? (
<ConnectorParameters
connectionOption={selectedConnectionOption}
setSelectedConnectionOption={setSelectedConnectionOption}
connectionConfig={connectionConfig}
systemFidesKey={systemFidesKey}
/>
) : null}
{selectedConnectionOption?.type === SystemType.MANUAL &&
selectedConnectionOption ? (
<ConnectorParameters
connectionOption={selectedConnectionOption}
setSelectedConnectionOption={setSelectedConnectionOption}
connectionConfig={connectionConfig}
systemFidesKey={systemFidesKey}
/>
) : null}
{selectedConnectionOption?.type === SystemType.EMAIL &&
selectedConnectionOption ? (
{selectedConnectionOption?.type &&
[SystemType.SAAS, SystemType.MANUAL, SystemType.EMAIL].includes(
selectedConnectionOption.type,
) ? (
<ConnectorParameters
connectionOption={selectedConnectionOption}
setSelectedConnectionOption={setSelectedConnectionOption}
Expand Down

0 comments on commit 4c8505d

Please sign in to comment.