From 6ed0dee17d3183373697c0e98dfa5149c5b1f4d3 Mon Sep 17 00:00:00 2001 From: Ida Dittrich Date: Thu, 26 Feb 2026 16:37:50 +0100 Subject: [PATCH] fix: build errors --- src/hooks/useChatbot.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/useChatbot.ts b/src/hooks/useChatbot.ts index 600a34e..f2c0a2e 100644 --- a/src/hooks/useChatbot.ts +++ b/src/hooks/useChatbot.ts @@ -341,7 +341,7 @@ export function useChatbot(): ChatbotHookReturn { if (!workflowIdToStop && messages.length > 0) { // Try to extract workflowId from the latest message (supports workflowId and conversationId) const latestMessage = messages[messages.length - 1]; - workflowIdToStop = getConversationId(latestMessage) || undefined; + workflowIdToStop = getConversationId(latestMessage) ?? null; if (workflowIdToStop) { console.log('Extracted workflowId from latest message:', workflowIdToStop); }