diff --git a/app/views/content/edit.html.erb b/app/views/content/edit.html.erb index f563acac..c62900a0 100644 --- a/app/views/content/edit.html.erb +++ b/app/views/content/edit.html.erb @@ -16,14 +16,14 @@ <% end %> -<%= content_for :javascripts do %> + <% if @content.persisted? %> <%= render partial: 'content/share', locals: { shared_content: @content} %>