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,9 +197,13 @@ const BoardPage = (props: Props): JSX.Element => {
|
|||
// and set it as most recently viewed board
|
||||
UserSettings.setLastBoardID(teamId, match.params.boardId)
|
||||
|
||||
if (viewId && viewId !== Constants.globalTeamId) {
|
||||
if (viewId !== Constants.globalTeamId) {
|
||||
// reset current, even if empty string
|
||||
dispatch(setCurrentView(viewId))
|
||||
UserSettings.setLastViewId(match.params.boardId, viewId)
|
||||
if (viewId) {
|
||||
// don't reset per board if empty string
|
||||
UserSettings.setLastViewId(match.params.boardId, viewId)
|
||||
}
|
||||
}
|
||||
|
||||
if (!props.readonly && me) {
|
||||
|
|
Loading…
Reference in a new issue