mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
fix: delete vote fixes
This commit is contained in:
parent
a1e249a5bb
commit
6f84bc4f52
@ -237,10 +237,10 @@ class IssueDetailStore implements IssueDetailStore {
|
|||||||
|
|
||||||
removeIssueVote = async (workspaceSlug: string, projectId: string, issueId: string) => {
|
removeIssueVote = async (workspaceSlug: string, projectId: string, issueId: string) => {
|
||||||
try {
|
try {
|
||||||
const issueVoteResponse = await this.issueService.deleteIssueVote(workspaceSlug, projectId, issueId);
|
await this.issueService.deleteIssueVote(workspaceSlug, projectId, issueId);
|
||||||
const issueDetails = await this.issueService.getIssueById(workspaceSlug, projectId, issueId);
|
const issueDetails = await this.issueService.getIssueById(workspaceSlug, projectId, issueId);
|
||||||
|
|
||||||
if (issueVoteResponse) {
|
if (issueDetails) {
|
||||||
runInAction(() => {
|
runInAction(() => {
|
||||||
this.details = {
|
this.details = {
|
||||||
...this.details,
|
...this.details,
|
||||||
|
Loading…
Reference in New Issue
Block a user