fix: delete vote fixes

This commit is contained in:
sriram veeraghanta 2023-09-01 15:27:37 +05:30
parent a1e249a5bb
commit 6f84bc4f52

View File

@ -237,10 +237,10 @@ class IssueDetailStore implements IssueDetailStore {
removeIssueVote = async (workspaceSlug: string, projectId: string, issueId: string) => {
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);
if (issueVoteResponse) {
if (issueDetails) {
runInAction(() => {
this.details = {
...this.details,