fix: update whatsappMessages auto property based on whatsappEnabled state
(cherry picked from commit 6e8d869afb6f588cb4e353974fa1eb23c56e3133)
This commit is contained in:
parent
bed6e346ef
commit
6a729fb5e7
@ -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()),
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user