fix: update whatsappMessages auto property based on whatsappEnabled state
This commit is contained in:
parent
63d6062673
commit
6e8d869afb
@ -566,7 +566,7 @@ const whatsappMessages = createResource({
|
|||||||
reference_doctype: props.doctype,
|
reference_doctype: props.doctype,
|
||||||
reference_name: props.docname,
|
reference_name: props.docname,
|
||||||
},
|
},
|
||||||
auto: true,
|
auto: whatsappEnabled.value,
|
||||||
transform: (data) => sortByCreation(data),
|
transform: (data) => sortByCreation(data),
|
||||||
onSuccess: () => nextTick(() => scroll()),
|
onSuccess: () => nextTick(() => scroll()),
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user