Show empty boards to all users

This commit is contained in:
wpetit 2019-12-13 13:31:50 +01:00
parent 477f221b24
commit a7f0eabb97
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}