Skip to content

Commit

Permalink
removed mapping for management tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
syed87 committed Nov 9, 2023
1 parent dfa63b2 commit 0e6d36e
Showing 1 changed file with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,17 +59,17 @@ def management_tasks
assessment,
).rollback?
{
title: "Reverse decision",
path: [:rollback, :assessor_interface, application_form, assessment],
name: "Reverse decision",
link: [:rollback, :assessor_interface, application_form, assessment],
}
end,
if AssessorInterface::ApplicationFormPolicy.new(
current_staff,
application_form,
).withdraw?
{
title: "Withdraw",
path: [:withdraw, :assessor_interface, application_form],
name: "Withdraw",
link: [:withdraw, :assessor_interface, application_form],
}
end,
].compact
Expand All @@ -96,10 +96,7 @@ def management_task_list_section

{
title: "Management",
items:
management_tasks.map do |task|
{ name: task[:title], link: task[:path] }
end,
items: management_tasks,
}
end

Expand Down

0 comments on commit 0e6d36e

Please sign in to comment.