Skip to content

Commit

Permalink
fix(Assistant): Empty search when closing Assistant dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
JF-Cozy committed Oct 23, 2024
1 parent 2c4a3e0 commit 9f68cc1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/assistant/Views/AssistantDialog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,21 @@ import { useNavigate } from 'react-router-dom'
import { FixedDialog } from 'cozy-ui/transpiled/react/CozyDialogs'
import { useBreakpoints } from 'cozy-ui/transpiled/react/providers/Breakpoints'

import { useSearch } from '../Search/SearchProvider'
import Conversation from '../Conversations/Conversation'
import ConversationBar from '../Conversations/ConversationBar'
import { useAssistant } from '../AssistantProvider'

const AssistantDialog = () => {
const { assistantState, clearAssistant } = useAssistant()
const { clearSearch } = useSearch()
const { isMobile } = useBreakpoints()
const navigate = useNavigate()

const onClose = () => {
navigate('..')
clearAssistant()
clearSearch()
}

return (
Expand Down

0 comments on commit 9f68cc1

Please sign in to comment.