diff --git a/frontend/src/stores/notifications.js b/frontend/src/stores/notifications.js index bb7e92ea..fe31b91d 100644 --- a/frontend/src/stores/notifications.js +++ b/frontend/src/stores/notifications.js @@ -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() {