File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
airbyte-webapp/src/pages/ConnectionPage/pages/CreationFormPage Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -83,9 +83,12 @@ export const CreationFormPage: React.FC = () => {
83
83
? EntityStepsTypes . DESTINATION
84
84
: EntityStepsTypes . SOURCE ;
85
85
86
- const hasConnectors = hasSourceId ( location . state ) && hasDestinationId ( location . state ) ;
87
86
const [ currentStep , setCurrentStep ] = useState (
88
- hasConnectors ? StepsTypes . CREATE_CONNECTION : StepsTypes . CREATE_ENTITY
87
+ hasSourceId ( location . state ) && hasDestinationId ( location . state )
88
+ ? StepsTypes . CREATE_CONNECTION
89
+ : hasSourceId ( location . state ) && ! hasDestinationId ( location . state )
90
+ ? StepsTypes . CREATE_CONNECTOR
91
+ : StepsTypes . CREATE_ENTITY
89
92
) ;
90
93
91
94
const [ currentEntityStep , setCurrentEntityStep ] = useState (
You can’t perform that action at this time.
0 commit comments