From 2d4547601d944c6d4b1142c1918eeabdc7943cbe Mon Sep 17 00:00:00 2001 From: Prateek Shourya Date: Tue, 9 Apr 2024 15:03:49 +0530 Subject: [PATCH] [WEB-903] fix: issue subscription button mutation. (#4149) --- web/store/issue/issue-details/subscription.store.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/store/issue/issue-details/subscription.store.ts b/web/store/issue/issue-details/subscription.store.ts index 418842a09..1326d705e 100644 --- a/web/store/issue/issue-details/subscription.store.ts +++ b/web/store/issue/issue-details/subscription.store.ts @@ -82,7 +82,7 @@ export class IssueSubscriptionStore implements IIssueSubscriptionStore { if (!currentUserId) throw new Error("user id not available"); runInAction(() => { - set(this.subscriptionMap, [issueId, currentUserId], { subscribed: true }); + set(this.subscriptionMap, [issueId, currentUserId], true); }); await this.notificationService.subscribeToIssueNotifications(workspaceSlug, projectId, issueId); @@ -98,7 +98,7 @@ export class IssueSubscriptionStore implements IIssueSubscriptionStore { if (!currentUserId) throw new Error("user id not available"); runInAction(() => { - set(this.subscriptionMap, [issueId, currentUserId], { subscribed: false }); + set(this.subscriptionMap, [issueId, currentUserId], false); }); await this.notificationService.unsubscribeFromIssueNotifications(workspaceSlug, projectId, issueId);