Skip to content

Commit

Permalink
AB#978 Show all recent tasks
Browse files Browse the repository at this point in the history
Not just the ones from the user's organization hierarchy.
  • Loading branch information
gjvoosten committed May 16, 2024
1 parent 53d4033 commit ca4d20f
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions client/src/pages/reports/Form.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,18 +249,10 @@ const ReportForm = ({
let recentTasksVarUser
if (currentUser.isAdmin()) {
recentTasksVarUser = recentTasksVarCommon
} else if (currentUser.position?.organization) {
recentTasksVarUser = {
...recentTasksVarCommon,
inMyReports: true,
taskedOrgUuid: currentUser.position?.organization?.uuid,
orgRecurseStrategy: RECURSE_STRATEGY.PARENTS
}
} else {
recentTasksVarUser = {
pageSize: 1,
status: Model.STATUS.ACTIVE,
text: "__should_not_match_anything__" // TODO: Do this more gracefully
...recentTasksVarCommon,
inMyReports: true
}
}
const { loading, error, data } = API.useApiQuery(GQL_GET_RECENTS, {
Expand Down

0 comments on commit ca4d20f

Please sign in to comment.