Skip to content

Commit

Permalink
Add missing fallback to boards reducer
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsmorais committed Oct 13, 2019
1 parent ebfc07a commit e7d5932
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/store/reducers/boards.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default function boards(
const {
name, newName, board, content,
} = (action && action.payload) || '';
const boardId = board.id || uniqid();
const boardId = board && board.id || uniqid();
const newState = {
...state,
};
Expand Down

0 comments on commit e7d5932

Please sign in to comment.