Show empty boards to all users
This commit is contained in:
parent
477f221b24
commit
a7f0eabb97
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue