Skip to content

Commit

Permalink
add modal to task review
Browse files Browse the repository at this point in the history
  • Loading branch information
CollinBeczak committed Aug 4, 2023
1 parent 07c3993 commit f3eaead
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/services/Task/TaskReview/TaskReview.js
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,9 @@ export const fetchTaskForReview = function(taskId, includeMapillary=false) {
variables: {id: taskId},
params: {mapillary: includeMapillary}
}).execute().then(normalizedResults => {
if (!_get(normalizedResults.entities.tasks, taskId).geometries.features) {
dispatch(addError(AppErrors.project.brokenTask));
}
dispatch(receiveTasks(normalizedResults.entities))
return normalizedResults
})
Expand Down

0 comments on commit f3eaead

Please sign in to comment.