Skip to content

Commit

Permalink
Merge pull request #7789 from MelsHyrule/catch-ui-exception-1
Browse files Browse the repository at this point in the history
Resolving nil UI exception

(cherry picked from commit eacb3be)
  • Loading branch information
agrare authored and Fryguy committed Aug 23, 2021
1 parent 745a6f3 commit 3476313
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions app/helpers/automation_manager_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,10 @@ def textual_survey_group(items)
end

def textual_variables(vars)
return unless vars
h = {:title => _("Variables"),
:headers => [_('Name'), _('Value')],
:col_order => %w[name value]}
h[:value] = vars.collect do |item|
h[:value] = Array(vars).collect do |item|
{
:name => item[0].to_s,
:value => item[1].to_s
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
:javascript
ManageIQ.component.componentFactory('TagGroup', '#tag_group', #{textual_tags_render_data(@record).to_json});
.col-md-12.col-lg-8
- if @record.survey_spec['spec']
- if @record.survey_spec&.dig("spec")
= react 'TableListViewWrapper', TextualListview.data(textual_configuration_script_survey)

0 comments on commit 3476313

Please sign in to comment.