1
0
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:
Chen-I Lim 2020-12-10 10:19:58 -08:00
parent e74723e699
commit 312fd2f9b1

View File

@ -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)