diff --git a/app/views/validation_requests/_pre_commencement_condition_validation_requests.html.erb b/app/views/validation_requests/_pre_commencement_condition_validation_requests.html.erb
index ae5215d1..3303a439 100644
--- a/app/views/validation_requests/_pre_commencement_condition_validation_requests.html.erb
+++ b/app/views/validation_requests/_pre_commencement_condition_validation_requests.html.erb
@@ -3,7 +3,7 @@
Respond to pre-commencement conditions
- <% @validation_requests["data"]["pre_commencement_condition_validation_requests"].group_by{ |request| request["condition_id"] }.each do |id, group| %>
+ <% @validation_requests["data"]["pre_commencement_condition_validation_requests"].group_by{ |request| request["owner_id"] }.each do |id, group| %>
<% request = group.sort_by{ |request| request["created_at"] }.last %>
-
diff --git a/db/schema.rb b/db/schema.rb
index 5f2abddc..36e69cf6 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
-ActiveRecord::Schema[7.0].define(version: 2024_01_02_155438) do
+ActiveRecord::Schema[7.1].define(version: 2024_01_02_155438) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"