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:
parent
e9e8d64333
commit
39e8e466e0
@ -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))
|
||||
}
|
||||
})
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user