atzarota no cybrespace/mastodon
fix(column): Crash when heading is undefined (#4378)
Šis iesūtījums ir iekļauts:
vecāks
4ba33f99fc
iesūtījums
b8adb4d7fa
1 izmainītas datnes ar 1 papildinājumiem un 1 izdzēšanām
|
@ -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 && (
|
||||||
|
|
Notiek ielāde…
Pievienot tabulu
Atsaukties jaunā pieteikumā