1
0
mirror of https://github.com/mattermost/focalboard.git synced 2024-11-30 08:36:54 +02:00

fix for following button on card (#2833)

This commit is contained in:
Scott Bishel 2022-04-18 12:52:28 -06:00 committed by GitHub
parent e9e8d64333
commit 39e8e466e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -187,13 +187,13 @@ export default class Plugin {
// This handles the user selecting a team from the team sidebar.
const currentTeamID = mmStore.getState().entities.teams.currentTeamId
if (currentTeamID && currentTeamID !== prevTeamID) {
prevTeamID = currentTeamID
store.dispatch(setTeam(currentTeamID))
if (window.location.pathname.startsWith(windowAny.frontendBaseURL || '')) {
if (prevTeamID && window.location.pathname.startsWith(windowAny.frontendBaseURL || '')) {
console.log("REDIRECTING HERE")
browserHistory.push(`/team/${currentTeamID}`)
wsClient.subscribeToTeam(currentTeamID)
}
prevTeamID = currentTeamID
store.dispatch(setTeam(currentTeamID))
}
})

View File

@ -61,7 +61,7 @@ const BoardPage = (props: Props): JSX.Element => {
}
dispatch(fetchUserBlockSubscriptions(me!.id))
}, [teamId])
}, [me?.id])
}
// TODO: Make this less brittle. This only works because this is the root render function