Skip to content

Commit

Permalink
VACMS-19545: add check for forms migration (#19254)
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskim2311 authored Nov 6, 2024
1 parent 2c54e40 commit aa18014
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/va_forms/app/sidekiq/va_forms/form_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def gather_form_attributes(form_data)
form_details_url:
form_data['entityPublished'] ? "#{VAForms::Form::FORM_BASE_URL}#{form_data.dig('entityUrl', 'path')}" : '',
form_tool_intro: form_data['fieldVaFormToolIntro'],
form_tool_url: form_data.dig('fieldVaFormToolUrl', 'uri'),
form_tool_url: form_data['entityPublished'] ? form_data.dig('fieldVaFormToolUrl', 'uri') : '',
deleted_at: form_data.dig('fieldVaFormDeletedDate', 'value'),
related_forms: form_data['fieldVaFormRelatedForms'].map { |f| f.dig('entity', 'fieldVaFormNumber') },
benefit_categories: parse_benefit_categories(form_data),
Expand Down

0 comments on commit aa18014

Please sign in to comment.