Skip to content

Commit b9fd113

Browse files
authored
🪟 🐛 Show correct page header for creating connection from connector page (#20986)
* fix check for titleId * cleanup
1 parent 8dcca01 commit b9fd113

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

airbyte-webapp/src/pages/ConnectionPage/pages/CreationFormPage/CreationFormPage.tsx

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -211,13 +211,16 @@ export const CreationFormPage: React.FC = () => {
211211
},
212212
];
213213

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];
221224

222225
return (
223226
<>

0 commit comments

Comments
 (0)