fix condition remove

This commit is contained in:
Pete Matsyburka
2025-08-28 10:31:19 +03:00
parent 6542804f44
commit 36bee92e8e
2 changed files with 26 additions and 12 deletions
+1 -1
View File
@@ -239,7 +239,7 @@ module Submissions
item['conditions'].each_with_object([]) do |condition, acc|
result =
if fields_index[condition['field_uuid']]['submitter_uuid'] == include_submitter_uuid
if fields_index.dig(condition['field_uuid'], 'submitter_uuid') == include_submitter_uuid
submitter_conditions_acc << condition if submitter_conditions_acc
true