Prevent NoMethodError when Html variant is not present (#13276)

Fixes https://app.honeybadger.io/projects/72638/faults/78731893.
This commit is contained in:
Vaidehi Joshi 2021-04-06 11:06:46 -07:00 committed by GitHub
parent f3d168f2e9
commit b2ded5b889
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,7 +7,7 @@
<title><%= community_name %> ❤️</title>
</head>
<body>
<%= @html_variant.html.html_safe %>
<%= @html_variant.html.html_safe if @html_variant.present? %>
<div id="html-variant-element" data-variant-id="<%= @html_variant.id %>"></div>
<script defer>
setTimeout(function () {