fix: always try the lastBoardId
when switching teams (#3673)
Co-authored-by: Scott Bishel <scott.bishel@mattermost.com>
This commit is contained in:
parent
c33840004d
commit
3a9212b17a
1 changed files with 1 additions and 3 deletions
|
@ -25,9 +25,7 @@ const TeamToBoardAndViewRedirect = (): null => {
|
|||
let boardID = match.params.boardId
|
||||
if (!match.params.boardId) {
|
||||
// first preference is for last visited board
|
||||
if (boards[UserSettings.lastBoardId[teamId]]) {
|
||||
boardID = UserSettings.lastBoardId[teamId]
|
||||
}
|
||||
boardID = UserSettings.lastBoardId[teamId]
|
||||
|
||||
// if last visited board is unavailable, use the first board in categories list
|
||||
if (!boardID && categories.length > 0) {
|
||||
|
|
Loading…
Reference in a new issue