From 84ab32f5712c8b9f722d6715b35c67faf095926d Mon Sep 17 00:00:00 2001 From: iamsivin Date: Fri, 1 Mar 2024 13:51:25 +0530 Subject: [PATCH] chore: Minor fix --- app/javascript/dashboard/routes/dashboard/inbox/InboxList.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/javascript/dashboard/routes/dashboard/inbox/InboxList.vue b/app/javascript/dashboard/routes/dashboard/inbox/InboxList.vue index fbbefd314..48d66d591 100644 --- a/app/javascript/dashboard/routes/dashboard/inbox/InboxList.vue +++ b/app/javascript/dashboard/routes/dashboard/inbox/InboxList.vue @@ -236,12 +236,13 @@ export default { snoozeNotification(snoozedUntil) { this.$store .dispatch('notifications/snooze', { - id: this.notificationId || this.notificationIdToSnooze, + id: this.notificationIdToSnooze || this.notificationId, snoozedUntil, }) .then(() => { this.showAlert(this.$t('INBOX.ALERTS.SNOOZE')); }); + this.notificationIdToSnooze = null; }, onCmdSnoozeNotification(snoozeType) { if (snoozeType === wootConstants.SNOOZE_OPTIONS.UNTIL_CUSTOM_TIME) {