Browse Source

fix(column): Crash when heading is undefined (#4378)

master
Sorin Davidoi 7 years ago
committed by Eugen Rochko
parent
commit
b8adb4d7fa
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/javascript/mastodon/features/ui/components/column.js

+ 1
- 1
app/javascript/mastodon/features/ui/components/column.js View File

@ -38,7 +38,7 @@ export default class Column extends React.PureComponent {
render () {
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 header = showHeading && (

Loading…
Cancel
Save