mirror of
https://github.com/mattermost/focalboard.git
synced 2025-01-08 15:06:08 +02:00
reset current view, if empty, prevents using activeview with wrong board (#3880)
This commit is contained in:
parent
959a5ce8ff
commit
68c00cf560
@ -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 New Issue
Block a user