logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: b8adb4d7fa6546f415d93d0af8e1d7b0e24a3f54
parent: 4ba33f99fc9d903b3b6b836ea86051c407eb4b0a
Author: Sorin Davidoi <sorin.davidoi@gmail.com>
Date:   Wed, 26 Jul 2017 15:03:23 +0200

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


Diffstat:

Mapp/javascript/mastodon/features/ui/components/column.js2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/javascript/mastodon/features/ui/components/column.js b/app/javascript/mastodon/features/ui/components/column.js @@ -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 && (