Fix breaking column bug lol whoops
This commit is contained in:
parent
c5641a566d
commit
82b41d2521
2 changed files with 2 additions and 2 deletions
|
@ -17,7 +17,7 @@ export default class Column extends React.PureComponent {
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { heading, icon, children, active, menu } = this.props;
|
const { heading, icon, children, active, menu } = this.props;
|
||||||
const columnHeaderId = heading.replace(/ /g, '-');
|
const columnHeaderId = heading && heading.replace(/ /g, '-');
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div role='region' aria-labelledby={columnHeaderId} className='column column--better'>
|
<div role='region' aria-labelledby={columnHeaderId} className='column column--better'>
|
||||||
|
|
|
@ -16,7 +16,7 @@ export default class Column extends React.PureComponent {
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { heading, icon, children, active, backBtnSlim } = this.props;
|
const { heading, icon, children, active, backBtnSlim } = this.props;
|
||||||
const columnHeaderId = heading.replace(/ /g, '-');
|
const columnHeaderId = heading && heading.replace(/ /g, '-');
|
||||||
const backBtn = backBtnSlim ? (<ColumnBackButtonSlim />) : (<ColumnBackButton />);
|
const backBtn = backBtnSlim ? (<ColumnBackButtonSlim />) : (<ColumnBackButton />);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in a new issue