mirror of
https://github.com/mattermost/focalboard.git
synced 2024-12-30 14:00:07 +02:00
Delay after adding view so it switches correctly
This commit is contained in:
parent
e74723e699
commit
312fd2f9b1
@ -55,7 +55,10 @@ export class ViewMenu extends React.PureComponent<Props> {
|
||||
view,
|
||||
'add view',
|
||||
async () => {
|
||||
showView(view.id)
|
||||
// This delay is needed because OctoListener has a default 100 ms notification delay before updates
|
||||
setTimeout(() => {
|
||||
showView(view.id)
|
||||
}, 120)
|
||||
},
|
||||
async () => {
|
||||
showView(oldViewId)
|
||||
@ -81,7 +84,11 @@ export class ViewMenu extends React.PureComponent<Props> {
|
||||
view,
|
||||
'add view',
|
||||
async () => {
|
||||
showView(view.id)
|
||||
// This delay is needed because OctoListener has a default 100 ms notification delay before updates
|
||||
setTimeout(() => {
|
||||
Utils.log(`showView: ${view.id}`)
|
||||
showView(view.id)
|
||||
}, 120)
|
||||
},
|
||||
async () => {
|
||||
showView(oldViewId)
|
||||
|
Loading…
Reference in New Issue
Block a user