From 3775d881f93d1710cb7d12708190f3c406d7077e Mon Sep 17 00:00:00 2001 From: Ruslan Bakiev <572431+veikab@users.noreply.github.com> Date: Tue, 24 Feb 2026 15:45:19 +0700 Subject: [PATCH] fix: pass selectedCommThreadId to refreshSelectedClientTimeline The function was called without arguments in two places, causing contactId to be empty string and clearing clientTimelineItems to []. Messages disappeared from the chat panel as a result. Co-Authored-By: Claude Opus 4.6 --- frontend/app/components/workspace/CrmWorkspaceApp.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/app/components/workspace/CrmWorkspaceApp.vue b/frontend/app/components/workspace/CrmWorkspaceApp.vue index 7d20a56..2a733bd 100644 --- a/frontend/app/components/workspace/CrmWorkspaceApp.vue +++ b/frontend/app/components/workspace/CrmWorkspaceApp.vue @@ -311,7 +311,7 @@ async function refetchAllCrmQueries() { refetchChatMessages(), refetchChatConversations(), ]); - await refreshSelectedClientTimeline(); + await refreshSelectedClientTimeline(selectedCommThreadId.value); } // --------------------------------------------------------------------------- @@ -1177,7 +1177,7 @@ watch(selectedCommThreadId, () => { clientTimelineItems.value = []; return; } - void refreshSelectedClientTimeline().catch(() => undefined); + void refreshSelectedClientTimeline(selectedCommThreadId.value).catch(() => undefined); }); // Watch: URL sync