Skip to content

Commit

Permalink
fix: Fix undefined flow ref not caught
Browse files Browse the repository at this point in the history
  • Loading branch information
tjtanjin committed Nov 21, 2024
1 parent 5f61f8a commit cbdf31c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/internal/useFlowInternal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const useFlowInternal = () => {
* Retrieves the conversation flow for the chatbot.
*/
const getFlow = useCallback(() => {
return flowRef.current ?? {};
return flowRef?.current ?? {};
}, [flowRef]);


Expand Down

0 comments on commit cbdf31c

Please sign in to comment.