We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3695e4c commit ea2fde6Copy full SHA for ea2fde6
app/screens/channel/header/channel_banner/channel_banner.tsx
@@ -75,7 +75,8 @@ export function ChannelBanner({bannerInfo, isTopItem}: Props) {
75
}), [bannerInfo?.background_color, defaultHeight, style.container]);
76
77
const markdownTextStyle = useMemo(() => {
78
- const textStyle = getMarkdownTextStyles(theme);
+ // We do a shallow copy to avoid mutating the original object.
79
+ const textStyle = {...getMarkdownTextStyles(theme)};
80
81
// channel banner colors are theme independent.
82
// If we let the link color being set by the theme, it will be unreadable in some cases.
0 commit comments