fix: update whatsappMessages auto property based on whatsappEnabled state

(cherry picked from commit 6e8d869afb6f588cb4e353974fa1eb23c56e3133)
This commit is contained in:
Shariq Ansari 2025-07-30 16:24:19 +05:30 committed by Mergify
parent bed6e346ef
commit 6a729fb5e7

View File

@ -566,7 +566,7 @@ const whatsappMessages = createResource({
reference_doctype: props.doctype,
reference_name: props.docname,
},
auto: true,
auto: whatsappEnabled.value,
transform: (data) => sortByCreation(data),
onSuccess: () => nextTick(() => scroll()),
})