mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-03 11:13:06 +08:00
Merge pull request #6017 from aignatov-bio/ai-sci-9062-hide-result-title-in-docx
Hide result title in docx [SCI-9062]
This commit is contained in:
commit
6c67c35a69
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ module Reports::Docx::DrawMyModule
|
|||
draw_step(step)
|
||||
end
|
||||
|
||||
@docx.h4 I18n.t('Results') if my_module.results.any?
|
||||
@docx.h4 I18n.t('Results') if my_module.results.any? && (%w(file_results table_results text_results).any? { |k| @settings.dig('task', k) })
|
||||
order_results_for_report(my_module.results, @settings.dig('task', 'result_order')).each do |result|
|
||||
if result.is_asset && @settings.dig('task', 'file_results')
|
||||
draw_result_asset(result, @settings)
|
||||
|
|
Loading…
Reference in a new issue