File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed
airbyte-webapp/src/pages/ConnectionPage/pages/CreationFormPage Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -211,13 +211,16 @@ export const CreationFormPage: React.FC = () => {
211
211
} ,
212
212
] ;
213
213
214
- const titleId : string = (
215
- {
216
- [ EntityStepsTypes . CONNECTION ] : "connection.newConnectionTitle" ,
217
- [ EntityStepsTypes . DESTINATION ] : "destinations.newDestinationTitle" ,
218
- [ EntityStepsTypes . SOURCE ] : "sources.newSourceTitle" ,
219
- } as Record < EntityStepsTypes , string >
220
- ) [ type ] ;
214
+ const titleId : string =
215
+ currentStep === "createConnection"
216
+ ? "connection.newConnectionTitle"
217
+ : (
218
+ {
219
+ [ EntityStepsTypes . CONNECTION ] : "connection.newConnectionTitle" ,
220
+ [ EntityStepsTypes . DESTINATION ] : "destinations.newDestinationTitle" ,
221
+ [ EntityStepsTypes . SOURCE ] : "sources.newSourceTitle" ,
222
+ } as Record < EntityStepsTypes , string >
223
+ ) [ type ] ;
221
224
222
225
return (
223
226
< >
You can’t perform that action at this time.
0 commit comments