mirror of
https://github.com/mattermost/focalboard.git
synced 2025-01-08 15:06:08 +02:00
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
@ -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 New Issue
Block a user