From 8a31769ec6cb836549f1c37163f51a3601551d09 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Sun, 19 Jan 2025 22:41:27 +0530 Subject: [PATCH] fix: do not cache get contact from phone number api --- frontend/src/components/Telephony/ExotelCallUI.vue | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/frontend/src/components/Telephony/ExotelCallUI.vue b/frontend/src/components/Telephony/ExotelCallUI.vue index 3d65e02e..1a5888fb 100644 --- a/frontend/src/components/Telephony/ExotelCallUI.vue +++ b/frontend/src/components/Telephony/ExotelCallUI.vue @@ -16,7 +16,7 @@ /> - {{ contact?.full_name ?? phoneNumber }} + {{ contact?.full_name ?? contact?.mobile_no }} ·
{{ counterUp?.updatedTime }} @@ -68,11 +68,11 @@ class="flex flex-col gap-1 text-base leading-4 overflow-hidden" >
- {{ contact?.full_name ?? phoneNumber }} + {{ contact?.full_name ?? contact?.mobile_no }}
- {{ phoneNumber }} + {{ contact?.mobile_no }} · {{ counterUp?.updatedTime }}
@@ -170,11 +170,11 @@ {{ contact.full_name }}
- {{ phoneNumber }} + {{ contact.mobile_no }}
- {{ phoneNumber }} + {{ contact.mobile_no }}
@@ -296,7 +296,6 @@ const getContact = createResource({ phone_number: phoneNumber.value, } }, - cache: ['contact', phoneNumber.value], onSuccess(data) { contact.value = data },