1
0
mirror of https://github.com/mattermost/focalboard.git synced 2024-12-24 13:43:12 +02:00

Not opening template picker if there are no boards

This commit is contained in:
Harshil Sharma 2022-11-25 11:50:03 +05:30
parent 6674402079
commit 864269f37b

View File

@ -163,8 +163,10 @@ const Workspace = (props: Props) => {
setBoardTemplateSelectorOpen(false)
}, [])
const openBoardTemplateSelector = useCallback(() => {
setBoardTemplateSelectorOpen(true)
}, [])
if (board) {
setBoardTemplateSelectorOpen(true)
}
}, [board])
useEffect(() => {
setBoardTemplateSelectorOpen(false)
}, [board, viewId])