Skip to content

Commit aa13075

Browse files
committed
Fixing passing of params to component invoke method
1 parent 74f3e92 commit aa13075

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/generators/strapi/component_generator.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,9 @@ def create_data_file
4040
end
4141

4242
def run_view_component_generator
43-
params = @rails_param_names.join(" ").presence
4443
Rails::Generators.invoke(
4544
"component",
46-
["Cms::#{@component_name_class}", params, "--test-framework=rspec", "--sidecar"].compact,
45+
["Cms::#{@component_name_class}", *@rails_param_names, "--test-framework=rspec", "--sidecar"].compact,
4746
behaviour: :invoke,
4847
destination_root:
4948
)

0 commit comments

Comments
 (0)