Fix breaking column bug lol whoops

fix/tabs-bar-issues
Alex Gleason 2021-01-01 14:11:52 -06:00
rodzic c5641a566d
commit 82b41d2521
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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'>

Wyświetl plik

@ -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 (