Skip to content

Commit dab719a

Browse files
committed
fix(client): keep unknown pull request hosts on CommonMark
1 parent 47eb5be commit dab719a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎apps/mobile/src/features/pull-requests/PullRequestMarkdown.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export function PullRequestMarkdownRepository(props: {
4848
provider === undefined || url === undefined
4949
? null
5050
: changeRequestReferenceAutolinker({ provider, url });
51-
const lineBreaks = sourceControlClients.get(provider).hardLineBreaks ?? false;
51+
const lineBreaks = sourceControlClients.find(provider ?? "")?.hardLineBreaks ?? false;
5252
const target = pullRequestTarget(props.params);
5353
const project = useProject({
5454
environmentId: target.environmentId,

‎apps/web/src/components/pullRequest/PullRequestDetailPanel.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ function pullRequestMarkdownContext(
241241
) {
242242
return {
243243
autolinks: changeRequestReferenceAutolinker(detail),
244-
lineBreaks: sourceControlClients.get(detail?.provider).hardLineBreaks ?? false,
244+
lineBreaks: sourceControlClients.find(detail?.provider ?? "")?.hardLineBreaks ?? false,
245245
threadRef,
246246
};
247247
}

0 commit comments

Comments
 (0)