Skip to content

Commit ea2fde6

Browse files
Quick fix for disappearing links (#9216) (#9219)
(cherry picked from commit 910fd2b) Co-authored-by: Daniel Espino García <[email protected]>
1 parent 3695e4c commit ea2fde6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/screens/channel/header/channel_banner/channel_banner.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ export function ChannelBanner({bannerInfo, isTopItem}: Props) {
7575
}), [bannerInfo?.background_color, defaultHeight, style.container]);
7676

7777
const markdownTextStyle = useMemo(() => {
78-
const textStyle = getMarkdownTextStyles(theme);
78+
// We do a shallow copy to avoid mutating the original object.
79+
const textStyle = {...getMarkdownTextStyles(theme)};
7980

8081
// channel banner colors are theme independent.
8182
// If we let the link color being set by the theme, it will be unreadable in some cases.

0 commit comments

Comments
 (0)