reset current view, if empty, prevents using activeview with wrong board (#3880)
This commit is contained in:
parent
959a5ce8ff
commit
68c00cf560
1 changed files with 6 additions and 2 deletions
|
@ -197,10 +197,14 @@ const BoardPage = (props: Props): JSX.Element => {
|
||||||
// and set it as most recently viewed board
|
// and set it as most recently viewed board
|
||||||
UserSettings.setLastBoardID(teamId, match.params.boardId)
|
UserSettings.setLastBoardID(teamId, match.params.boardId)
|
||||||
|
|
||||||
if (viewId && viewId !== Constants.globalTeamId) {
|
if (viewId !== Constants.globalTeamId) {
|
||||||
|
// reset current, even if empty string
|
||||||
dispatch(setCurrentView(viewId))
|
dispatch(setCurrentView(viewId))
|
||||||
|
if (viewId) {
|
||||||
|
// don't reset per board if empty string
|
||||||
UserSettings.setLastViewId(match.params.boardId, viewId)
|
UserSettings.setLastViewId(match.params.boardId, viewId)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!props.readonly && me) {
|
if (!props.readonly && me) {
|
||||||
loadOrJoinBoard(me.id, teamId, match.params.boardId)
|
loadOrJoinBoard(me.id, teamId, match.params.boardId)
|
||||||
|
|
Loading…
Reference in a new issue