From b087e50292184ceeb1051e05b333f89c601b13aa Mon Sep 17 00:00:00 2001 From: William Petit Date: Fri, 13 Dec 2019 13:30:53 +0100 Subject: [PATCH] Fix error when no lane is defined in board --- client/src/components/BoardPage/BoardPage.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/components/BoardPage/BoardPage.jsx b/client/src/components/BoardPage/BoardPage.jsx index 66ab9b8..cec2bbd 100644 --- a/client/src/components/BoardPage/BoardPage.jsx +++ b/client/src/components/BoardPage/BoardPage.jsx @@ -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 (