fix: unable to start web with quick ask (#2402)
Signed-off-by: James <james@jan.ai> Co-authored-by: James <james@jan.ai>
This commit is contained in:
parent
5633195f7e
commit
6dfa23cd02
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user