Skip to content

Commit

Permalink
Merge pull request #2101 from MahtabBukhari/should-open-sidebar-on-cl…
Browse files Browse the repository at this point in the history
…ick-on-chat-icon

Initially when the App load and we close AI chat Pannell by toolbar chat Icon the sidebar is not open
  • Loading branch information
Rassl authored Sep 10, 2024
2 parents a2d906b + 5c2f724 commit a9ca0da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/App/MainToolbar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const MainToolbar = () => {

const { resetAiSummaryAnswer, setNewLoading } = useAiSummaryStore()
const { abortFetchData, resetGraph } = useDataStore((s) => s)
const { setUniverseQuestionIsOpen, setSidebarOpen, setShowCollapseButton, sidebarIsOpen } = useAppStore((s) => s)
const { setUniverseQuestionIsOpen, setSidebarOpen, setShowCollapseButton } = useAppStore((s) => s)
const { customSchemaFeatureFlag, userFeedbackFeatureFlag, chatInterfaceFeatureFlag } = useFeatureFlagStore((s) => s)

const [isAdmin] = useUserStore((s) => [s.isAdmin])
Expand All @@ -45,8 +45,8 @@ export const MainToolbar = () => {

const handleOpenChatModal = () => {
setUniverseQuestionIsOpen()
setSidebarOpen(!sidebarIsOpen)
setShowCollapseButton(false)
setSidebarOpen(true)
setShowCollapseButton(true)
}

return (
Expand Down

0 comments on commit a9ca0da

Please sign in to comment.