Skip to content

Commit 93d7af2

Browse files
author
Tim Roes
authored
Fix breaking the app with fragment links in docs (#11312)
1 parent f040f50 commit 93d7af2

File tree

1 file changed

+2
-2
lines changed
  • airbyte-webapp/src/views/Connector/ServiceForm/components/Controls

1 file changed

+2
-2
lines changed

airbyte-webapp/src/views/Connector/ServiceForm/components/Controls/Instruction.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ const DocumentationPanel: React.FC<{ onClose: () => void } & IProps> = ({
7171
const config = useConfig();
7272
const { data: docs, isLoading } = useDocumentation(documentationUrl);
7373

74-
const removeBaseUrl = (url: { path: string }) => {
75-
if (url.path.startsWith("../../")) {
74+
const removeBaseUrl = (url: { path?: string }) => {
75+
if (url.path?.startsWith("../../")) {
7676
return url.path.replace("../../", `${config.integrationUrl}/`);
7777
}
7878
return url.path;

0 commit comments

Comments
 (0)