mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-26 09:42:46 +08:00
Fix report generation with default template [SCI-5676]
This commit is contained in:
parent
32682efd92
commit
fcfba5a0d9
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ module Reports
|
|||
if Extends::REPORT_TEMPLATES.key?(report.settings[:template]&.to_sym)
|
||||
report.settings[:template]
|
||||
else
|
||||
Extends::REPORT_TEMPLATES.keys.first
|
||||
Extends::REPORT_TEMPLATES.keys.first.to_s
|
||||
end
|
||||
|
||||
raise StandardError, 'Report template not found!' if template.blank?
|
||||
|
|
Loading…
Reference in a new issue