Skip to content

Commit

Permalink
Fixes #30598 - replace mount_react_component with react_component
Browse files Browse the repository at this point in the history
replace mount_react_component with react_component in
app/views/report_templates/report_data.html.erb
  • Loading branch information
sharvit authored and amirfefer committed Aug 24, 2020
1 parent a4c0a16 commit 9a251d4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/views/report_templates/report_data.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<% title _("Download generated report") %>
<div id="template_generator"></div>
<%= mount_react_component('TemplateGenerator', '#template_generator', {'templateName' => @template.name}.to_json) %>
<%= react_component('TemplateGenerator', data: { templateName: @template.name }) %>

<script type="text/javascript">
tfm.templateInputs.pollReportData('<%= @data_url %>');
Expand Down

0 comments on commit 9a251d4

Please sign in to comment.