Skip to content

Commit

Permalink
fix: fix responsible field on divided boards (#1415)
Browse files Browse the repository at this point in the history
  • Loading branch information
CatiaAntunes96 authored Apr 19, 2023
1 parent 6d6f745 commit 74f3248
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions frontend/src/pages/boards/newSplitBoard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,15 @@ const NewSplitBoard: NextPage = () => {
const responsible = newSubBoard.users.find(
(user) => user.role === BoardUserRoles.RESPONSIBLE,
);

if (!isEmpty(responsible)) {
responsibles.push(responsible.user);
}

if (responsible) {
newSubBoard.responsibles = [responsible.user];
}

return newSubBoard;
});

Expand Down

0 comments on commit 74f3248

Please sign in to comment.