From 939176fd03c4f07bd73b5c68274ae60b0d15f8da Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Tue, 30 Jan 2024 01:32:36 +0530 Subject: [PATCH] fix: clear params after mark as read --- frontend/src/stores/notifications.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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() {