Skip to content

Unable to Clear Query Parameters #11

Description

@RyoSogawa

Describe the bug

Thank you for the awesome addon.
It seems like I can no longer clear query parameters as I could in previous versions.

The ability to clear query parameters is crucial for resetting parameters specified in another story.
Could you please look into this issue? Thank you!

Steps to reproduce the behavior

// stories.tsx
export meta = {
  parameters: {
    query: {
      id: undefined,
      name: null,
    },
  },
};

in the current version, it generates query parameters like:

?id=undefined&name=null

Expected behavior

In version 6.x, the above code wouldn't set the query parameters.

Environment

  • OS: MacOS
  • Node.js version: v18.x

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions