Skip to content

Commit

Permalink
Make return type of destination non-optional (#3381)
Browse files Browse the repository at this point in the history
* Make return type of destination non-optional

* Preload destinationDefinition

* Audit fix
  • Loading branch information
jamakase committed May 12, 2021
1 parent c1b4843 commit 4889924
Show file tree
Hide file tree
Showing 6 changed files with 117 additions and 100 deletions.
181 changes: 94 additions & 87 deletions airbyte-webapp/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion airbyte-webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"react-use": "^15.3.8",
"react-widgets": "^4.5.0",
"rest-hooks": "^5.0.20",
"sanitize-html": "^2.1.2",
"sanitize-html": "^2.3.3",
"styled-components": "^5.1.1",
"yup": "^0.28.1"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { SyncSchema } from "core/domain/catalog";

import useConnection from "components/hooks/services/useConnectionHook";
import { useDiscoverSchema } from "components/hooks/services/useSchemaHook";
import { useDestinationDefinitionSpecificationLoad } from "../hooks/services/useDestinationHook";
import { useDestinationDefinitionSpecificationLoad } from "components/hooks/services/useDestinationHook";

const SkipButton = styled.div`
margin-top: 6px;
Expand Down Expand Up @@ -61,7 +61,6 @@ const CreateConnectionContent: React.FC<IProps> = ({
} = useDiscoverSchema(source?.sourceId);

const {
destinationDefinitionSpecification,
isLoading: loadingDestination,
} = useDestinationDefinitionSpecificationLoad(
destination.destinationDefinitionId
Expand Down Expand Up @@ -153,7 +152,6 @@ const CreateConnectionContent: React.FC<IProps> = ({
schema={schema}
source={source}
destination={destination}
destinationDefinition={destinationDefinitionSpecification}
/>
</Suspense>
</ContentCard>
Expand Down
Loading

0 comments on commit 4889924

Please sign in to comment.