Skip to content

Commit

Permalink
Merge pull request #128 from open-schools/feature/SCHOOL-828/current-…
Browse files Browse the repository at this point in the history
…ticket-page

Feature/school 828/current ticket page
  • Loading branch information
levil664 authored May 3, 2024
2 parents 538d358 + 3c6059d commit 451d3ac
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
7 changes: 6 additions & 1 deletion apps/schools/domains/query/handlers/queryUpdate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,10 @@ export async function handleQueryStatusChange(mutation: any, id: string, status:
status: status,
})

if ('data' in response) message.success(`Вы успешно сменили статус`)
if ('data' in response) {
message.success(`Вы успешно сменили статус`)
return true
} else {
return false
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,12 @@ const CurrentTicket = () => {
break
}
}
handleQueryStatusChange(mutation, uuid[0], translatedStatus as QueriesTypes)
setCurrentStatus(value)
setCurrentDependencies(graph[value] || [])
handleQueryStatusChange(mutation, uuid[0], translatedStatus as QueriesTypes).then((changeStatus) => {
if (changeStatus) {
setCurrentStatus(value)
setCurrentDependencies(graph[value] || [])
}
})
}

useEffect(() => {
Expand Down

0 comments on commit 451d3ac

Please sign in to comment.