diff --git a/app/views/shared/export/_plan.erb b/app/views/shared/export/_plan.erb index c7eaf8a..2f74d16 100644 --- a/app/views/shared/export/_plan.erb +++ b/app/views/shared/export/_plan.erb @@ -34,7 +34,7 @@ <% end %> <% else %> -

<%= raw question[:text][0].gsub(/(\s||<\/td>| )*(<\/tr>|)/,"") %>

+

<%= raw question[:text][0].gsub(/(\s||<\/td>| )*(<\/tr>|)/,"") if question[:text].present? && question[:text][0].present? %>

<% end %>
<% end %>