Skip to content

Commit 0ee243f

Browse files
committed
fix(chatwoot): fix bug when chatwoot params reopen_conversation and conversation_pending are enabled
1 parent 92f8951 commit 0ee243f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/integrations/chatwoot/services/chatwoot.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ export class ChatwootService {
628628
id: contactId,
629629
})) as any;
630630

631-
if (contactConversations) {
631+
if (contactConversations?.payload?.length) {
632632
let conversation: any;
633633
if (this.provider.reopen_conversation) {
634634
conversation = contactConversations.payload.find((conversation) => conversation.inbox_id == filterInbox.id);

0 commit comments

Comments
 (0)