Added functionality to close boardSelector after linking board (#3758)

This commit is contained in:
Rajat Dabade 2022-08-31 01:02:10 +05:30 committed by GitHub
parent 7bf8f9ba41
commit ce74950566
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -100,6 +100,10 @@ const BoardSelector = () => {
const newBoard = createBoard({...board, channelId: currentChannel})
await mutator.updateBoard(newBoard, board, 'linked channel')
setShowLinkBoardConfirmation(null)
dispatch(setLinkToChannel(''))
setResults([])
setIsSearching(false)
setSearchQuery('')
}
const unlinkBoard = async (board: Board): Promise<void> => {