app/components/lookbook/base_component.rb in lookbook-1.0.0.rc.2 vs app/components/lookbook/base_component.rb in lookbook-1.0.0.rc.3

- old
+ new

@@ -33,10 +33,10 @@ def prepare_alpine_data(x_data = nil) alpine_component_name = x_data || @html_attrs&.dig(:"x-data") || alpine_component if alpine_component_name.present? args = Array.wrap(alpine_data) - args.any? ? "#{alpine_component_name}(#{safe_join(args).gsub(""", "'").tr("\"", "'")})" : alpine_component_name + args.any? ? "#{alpine_component_name}(#{safe_join(args)})" : alpine_component_name end end end end