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() {
|
renderNewCardModal() {
|
||||||
const { newCardModalActive, newCardLaneID } = this.state;
|
const { newCardModalActive, newCardLaneID } = this.state;
|
||||||
const { board } = this.props;
|
const { board } = this.props;
|
||||||
if (!board) return null;
|
if (!board || !newCardLaneID) return null;
|
||||||
return (
|
return (
|
||||||
<Modal active={newCardModalActive}>
|
<Modal active={newCardModalActive}>
|
||||||
<div className="new-card-modal">
|
<div className="new-card-modal">
|
||||||
|
|
Loading…
Reference in New Issue