Fix export of protocols with empty step text fields [SCI-7126]

This commit is contained in:
Oleksii Kriuchykhin 2022-08-23 14:30:30 +02:00
parent c2242b6cc8
commit 3d00249644

View file

@ -91,7 +91,7 @@ module ProtocolsExporterV2
"<!--[CDATA[ #{Nokogiri::HTML::DocumentFragment.parse(step_text.text)} ]]-->"\
"</contents>\n"
xml << get_tiny_mce_assets(step_text.text)
xml << get_tiny_mce_assets(step_text.text) if step_text.text.present?
xml << "</stepText>\n"
end