Keep on sync the current team id with mattermost since the beginning (#3499)
* Keep on sync the current team id with mattermost since the beginning * Removing unneeded code
This commit is contained in:
parent
97818c3915
commit
08dd39d054
1 changed files with 9 additions and 0 deletions
|
@ -249,6 +249,15 @@ export default class Plugin {
|
|||
}
|
||||
})
|
||||
|
||||
let fbPrevTeamID = store.getState().teams.currentId
|
||||
store.subscribe(() => {
|
||||
const currentTeamID = store.getState().teams.currentId
|
||||
if (currentTeamID && currentTeamID !== fbPrevTeamID) {
|
||||
fbPrevTeamID = currentTeamID
|
||||
selectTeam(currentTeamID)
|
||||
}
|
||||
})
|
||||
|
||||
if (this.registry.registerProduct) {
|
||||
windowAny.frontendBaseURL = subpath + '/boards'
|
||||
|
||||
|
|
Loading…
Reference in a new issue