Skip to content

fix: select default org in template form if only one exists #16639

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Mar 10, 2025

Conversation

Kira-Pilot
Copy link
Member

@Kira-Pilot Kira-Pilot commented Feb 20, 2025

@Kira-Pilot Kira-Pilot changed the title fix: default org selection in template form if only one fix: select default org in template form if only one exists Feb 20, 2025
@Kira-Pilot Kira-Pilot marked this pull request as draft February 20, 2025 02:58
@github-actions github-actions bot added the stale This issue is like stale bread. label Mar 1, 2025
@github-actions github-actions bot closed this Mar 5, 2025
@Kira-Pilot Kira-Pilot reopened this Mar 6, 2025
@Kira-Pilot Kira-Pilot removed the stale This issue is like stale bread. label Mar 6, 2025
@aslilac aslilac self-requested a review March 7, 2025 21:42
return (
<Autocomplete
noOptionsText="No organizations found"
className={className}
options={options}
disabled={options.length === 1}
value={selected}
Copy link
Member Author

@Kira-Pilot Kira-Pilot Mar 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Populating value is necessary so that the selected org shows in the Autocomplete.

@Kira-Pilot Kira-Pilot marked this pull request as ready for review March 7, 2025 21:56
Kira-Pilot and others added 2 commits March 7, 2025 17:12
@Kira-Pilot Kira-Pilot merged commit 191b0ef into main Mar 10, 2025
30 checks passed
@Kira-Pilot Kira-Pilot deleted the org-picker-default/kira-pilot branch March 10, 2025 15:56
@github-actions github-actions bot locked and limited conversation to collaborators Mar 10, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants