Merge pull request #4246 from mattermost/template-selector-fix
Not opening template picker if there are no boards
This commit is contained in:
commit
24fea1f44e
1 changed files with 4 additions and 2 deletions
|
@ -163,8 +163,10 @@ const Workspace = (props: Props) => {
|
||||||
setBoardTemplateSelectorOpen(false)
|
setBoardTemplateSelectorOpen(false)
|
||||||
}, [])
|
}, [])
|
||||||
const openBoardTemplateSelector = useCallback(() => {
|
const openBoardTemplateSelector = useCallback(() => {
|
||||||
|
if (board) {
|
||||||
setBoardTemplateSelectorOpen(true)
|
setBoardTemplateSelectorOpen(true)
|
||||||
}, [])
|
}
|
||||||
|
}, [board])
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
setBoardTemplateSelectorOpen(false)
|
setBoardTemplateSelectorOpen(false)
|
||||||
}, [board, viewId])
|
}, [board, viewId])
|
||||||
|
|
Loading…
Reference in a new issue