Skip to content

Commit 36b03f8

Browse files
author
Alex Tharp
authored
Merge pull request #26 from cortex-cms/topic/EM-1012-removable-regions
EM-1012: Removable Snippet Regions
2 parents e16ecfc + 343f143 commit 36b03f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cortex/snippets/client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def snippet(request, options = {}, block)
1414
snippets = current_webpage(request).snippets || []
1515
snippet = snippets.find { |snippet| snippet[:document][:name] == options[:id] }
1616

17-
if snippet.nil? || snippet[:document][:body].nil? || snippet[:document][:body].empty?
17+
if snippet.nil? || snippet[:document][:body].nil?
1818
content_tag(:snippet, block, options)
1919
else
2020
content_tag(:snippet, snippet[:document][:body].html_safe, options)

0 commit comments

Comments
 (0)