app/views/pageflow/react/page.html.erb in pageflow-react-0.1.0 vs app/views/pageflow/react/page.html.erb in pageflow-react-0.1.1
- old
+ new
@@ -1,7 +1,7 @@
<% if page.template.present? %>
<% concat React::ServerRendering.render(
- Pageflow.config.page_types.find_by_name!(page.template).component_name, MultiJson.dump(
+ Pageflow.config.page_types.find_by_name!(page.template).component_name, sanitize_json(MultiJson.dump(
resolverSeed: @_pageflow_react_entry_seed ||= entry_seed(@entry),
pageId: page.perma_id
- ), true) %>
+ )), true) %>
<% end %>