Fix error when no lane is defined in board
This commit is contained in:
parent
33a0c7850a
commit
b087e50292
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user