Skip to content

[Bug] Project picker dropdown highlights first item instead of current project #224

@illia1f

Description

@illia1f

Problem

When opening the project picker dropdown, the first item in the list is always highlighted, even when a different project is currently selected (shown with a checkmark).

Image

To Reproduce

  1. Have multiple projects in the project list
  2. Select a project that is not the first one in the list
  3. Open the project picker dropdown
  4. Observe that the first item is highlighted instead of the selected project

Expected behavior

The currently selected project should be highlighted when the dropdown opens, matching the item with the checkmark. Screenshots N/A Additional context The useProjectPicker hook initializes selectedProjectIndex to 0 and doesn't have access to currentProject to determine the correct initial index.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions