Fix breaking column bug lol whoops

This commit is contained in:
Alex Gleason 2021-01-01 14:11:52 -06:00
parent c5641a566d
commit 82b41d2521
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
2 changed files with 2 additions and 2 deletions

View file

@ -17,7 +17,7 @@ export default class Column extends React.PureComponent {
render() {
const { heading, icon, children, active, menu } = this.props;
const columnHeaderId = heading.replace(/ /g, '-');
const columnHeaderId = heading && heading.replace(/ /g, '-');
return (
<div role='region' aria-labelledby={columnHeaderId} className='column column--better'>

View file

@ -16,7 +16,7 @@ export default class Column extends React.PureComponent {
render() {
const { heading, icon, children, active, backBtnSlim } = this.props;
const columnHeaderId = heading.replace(/ /g, '-');
const columnHeaderId = heading && heading.replace(/ /g, '-');
const backBtn = backBtnSlim ? (<ColumnBackButtonSlim />) : (<ColumnBackButton />);
return (