view_component_storybook icon indicating copy to clipboard operation
view_component_storybook copied to clipboard

Standard Error when adding Array Control

Open hin101 opened this issue 3 years ago • 1 comments

I am getting a StandardError: Validation failed: Param can't be blank, when I run the rake task: view_component_storybook:write_stories_json.

Here is the story block I am using:

story :heading_with_counter do
      title do
        'Page Title'
      end
      counter(collection: array([1,2,3]), collection_type: :number)
    end

I suspect it's array([1,2,3]) which causes the issue, as if I take it out it works fine.

hin101 avatar Feb 04 '22 07:02 hin101

It would be great to get a failing test case in a PR to investigate this against. Do you think you could put that together?

jonspalmer avatar Feb 14 '22 04:02 jonspalmer

With V1 APi this issue is expected to be obsolete. Please reopen with a failing test case if it's not.

jonspalmer avatar Jan 21 '23 14:01 jonspalmer