fix: clear params after mark as read

This commit is contained in:
Shariq Ansari 2024-01-30 01:32:36 +05:30
parent 4af4d12625
commit 939176fd03

View File

@ -14,7 +14,10 @@ export const notificationsStore = defineStore('crm-notifications', () => {
const mark_as_read = createResource({
url: 'crm.api.notifications.mark_as_read',
auto: false,
onSuccess: () => notifications.reload(),
onSuccess: () => {
mark_as_read.params = {}
notifications.reload()
},
})
function toggle() {