Fix error when no lane is defined in board

This commit is contained in:
wpetit 2019-12-13 13:30:53 +01:00
parent 33a0c7850a
commit b087e50292

View File

@ -66,7 +66,7 @@ export class BoardPage extends React.Component {
renderNewCardModal() {
const { newCardModalActive, newCardLaneID } = this.state;
const { board } = this.props;
if (!board) return null;
if (!board || !newCardLaneID) return null;
return (
<Modal active={newCardModalActive}>
<div className="new-card-modal">