app/components/lookbook/embed/component.rb in lookbook-1.0.3 vs app/components/lookbook/embed/component.rb in lookbook-1.0.4
- old
+ new
@@ -18,10 +18,10 @@
def lookbook_preview_path(*args)
Lookbook::Engine.routes.url_helpers.lookbook_preview_path(*args)
end
def alpine_data
- [@id.to_json, "$store.pages.embeds"].join(",")
+ [alpine_encode(@id), "$store.pages.embeds"].join(",")
end
def alpine_component
"embedComponent"
end