mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 19:48:08 +00:00
fix: Prevent duplicate API calls for contact details when switching conversations (#9268)
Fixes #9263 Co-authored-by: Pranav <pranavrajs@gmail.com>
This commit is contained in:
@@ -101,14 +101,12 @@ const getContactDetails = () => {
|
||||
}
|
||||
};
|
||||
|
||||
watch(conversationId, (newConversationId, prevConversationId) => {
|
||||
if (newConversationId && newConversationId !== prevConversationId) {
|
||||
watch(contactId, (newContactId, prevContactId) => {
|
||||
if (newContactId && newContactId !== prevContactId) {
|
||||
getContactDetails();
|
||||
}
|
||||
});
|
||||
|
||||
watch(contactId, getContactDetails);
|
||||
|
||||
const onDragEnd = () => {
|
||||
dragging.value = false;
|
||||
updateUISettings({
|
||||
|
||||
Reference in New Issue
Block a user