mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-23 11:01:27 +01:00
fix(column): Crash when heading is undefined (#4378)
This commit is contained in:
parent
4ba33f99fc
commit
b8adb4d7fa
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ export default class Column extends React.PureComponent {
|
||||||
render () {
|
render () {
|
||||||
const { heading, icon, children, active, hideHeadingOnMobile } = this.props;
|
const { heading, icon, children, active, hideHeadingOnMobile } = this.props;
|
||||||
|
|
||||||
const showHeading = !hideHeadingOnMobile || (hideHeadingOnMobile && !isMobile(window.innerWidth));
|
const showHeading = heading && (!hideHeadingOnMobile || (hideHeadingOnMobile && !isMobile(window.innerWidth)));
|
||||||
|
|
||||||
const columnHeaderId = showHeading && heading.replace(/ /g, '-');
|
const columnHeaderId = showHeading && heading.replace(/ /g, '-');
|
||||||
const header = showHeading && (
|
const header = showHeading && (
|
||||||
|
|
Loading…
Reference in a new issue