fix: build errors

This commit is contained in:
Ida Dittrich 2026-02-26 16:37:50 +01:00
parent 50f3499fda
commit 6ed0dee17d

View file

@ -341,7 +341,7 @@ export function useChatbot(): ChatbotHookReturn {
if (!workflowIdToStop && messages.length > 0) { if (!workflowIdToStop && messages.length > 0) {
// Try to extract workflowId from the latest message (supports workflowId and conversationId) // Try to extract workflowId from the latest message (supports workflowId and conversationId)
const latestMessage = messages[messages.length - 1]; const latestMessage = messages[messages.length - 1];
workflowIdToStop = getConversationId(latestMessage) || undefined; workflowIdToStop = getConversationId(latestMessage) ?? null;
if (workflowIdToStop) { if (workflowIdToStop) {
console.log('Extracted workflowId from latest message:', workflowIdToStop); console.log('Extracted workflowId from latest message:', workflowIdToStop);
} }