File tree 1 file changed +3
-2
lines changed
airbyte-webapp/src/components/CreateConnectionContent
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import { LogsRequestError } from "core/request/LogsRequestError";
13
13
import { useAnalyticsService } from "hooks/services/Analytics/useAnalyticsService" ;
14
14
import { useCreateConnection , ValuesProps } from "hooks/services/useConnectionHook" ;
15
15
import ConnectionForm from "views/Connection/ConnectionForm" ;
16
+ import { ConnectionFormProps } from "views/Connection/ConnectionForm/ConnectionForm" ;
16
17
import { FormikConnectionFormValues } from "views/Connection/ConnectionForm/formConfig" ;
17
18
18
19
import { DestinationRead , SourceRead , WebBackendConnectionRead } from "../../core/request/AirbyteClient" ;
@@ -55,13 +56,13 @@ const CreateConnectionContent: React.FC<CreateConnectionContentProps> = ({
55
56
56
57
const [ connectionFormValues , setConnectionFormValues ] = useState < FormikConnectionFormValues > ( ) ;
57
58
58
- const connection = useMemo (
59
+ const connection = useMemo < ConnectionFormProps [ "connection" ] > (
59
60
( ) => ( {
60
61
name : connectionFormValues ?. name ?? "" ,
61
62
namespaceDefinition : connectionFormValues ?. namespaceDefinition ,
62
63
namespaceFormat : connectionFormValues ?. namespaceFormat ,
63
64
prefix : connectionFormValues ?. prefix ,
64
- schedule : connectionFormValues ?. schedule ,
65
+ schedule : connectionFormValues ?. schedule ?? undefined ,
65
66
syncCatalog : schema ,
66
67
destination,
67
68
source,
You can’t perform that action at this time.
0 commit comments