Skip to content

Commit

Permalink
fix: unable to start web with quick ask (#2402)
Browse files Browse the repository at this point in the history
Signed-off-by: James <[email protected]>
Co-authored-by: James <[email protected]>
  • Loading branch information
namchuai and James committed Mar 17, 2024
1 parent 5633195 commit 6dfa23c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/containers/Providers/QuickAskListener.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const QuickAskListener: React.FC<Props> = ({ children }) => {

const previousMessage = useRef('')

window.electronAPI.onUserSubmitQuickAsk((_event: string, input: string) => {
window.electronAPI?.onUserSubmitQuickAsk((_event: string, input: string) => {
if (previousMessage.current === input) return
setMainState(MainViewState.Thread)
setShowRightSideBar(false)
Expand Down

0 comments on commit 6dfa23c

Please sign in to comment.