From a7f0eabb97b7efe02ab5790d1a4568d01fc3f524 Mon Sep 17 00:00:00 2001 From: William Petit Date: Fri, 13 Dec 2019 13:31:50 +0100 Subject: [PATCH] Show empty boards to all users --- client/src/store/selectors/boards.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/store/selectors/boards.js b/client/src/store/selectors/boards.js index 1348b93..77c485f 100644 --- a/client/src/store/selectors/boards.js +++ b/client/src/store/selectors/boards.js @@ -2,7 +2,7 @@ export function selectBoardByUserProjects(boardsByID, projectsByName) { const userProjects = Object.keys(projectsByName); return Object.keys(boardsByID).reduce((filteredBoardsByID, boardID) => { const board = boardsByID[boardID]; - const hasProject = board.projects.some(p => userProjects.indexOf(p) !== -1); + const hasProject = board.projects.length === 0 || board.projects.some(p => userProjects.indexOf(p) !== -1); if (hasProject) { filteredBoardsByID[boardID] = board; }