Thanks to visit codestin.com
Credit goes to github.com

Skip to content

bug: selecting a form_type=dropdown template parameter item whose value is empty doesn't take effect #19809

@jingyuanliang

Description

@jingyuanliang

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

No response

Relevant Log Output

Expected Behavior

No response

Steps to Reproduce

  1. Create a dynamic parameter template, with a form_type=dropdown parameter
  2. The parameter should have an item with empty value, and an item with non-empty value
  3. The parameter should default to the non-empty value
  4. Create a workspace using the template, choose the item with empty value
  5. After workspace creation, the non-empty value takes effect

Environment

  • Host OS:
  • Coder version: v2.25.1+3bf6a00

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triageIssue that require triage

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions