Skip to content

armgit / plane

Public Imported from GitHub
0

πŸ”₯πŸ”₯πŸ”₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

[WEB-903] fix: issue subscription button mutation. (#4149)

Prateek Shourya2d4547601d94
diff --git a/web/store/issue/issue-details/subscription.store.ts b/web/store/issue/issue-details/subscription.store.ts
index 418842a095..1326d705ee 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);