1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-20 00:08:02 +01:00

fix: action select value (#6582)

This should fix the action select bug where it shows as empty when the
form loads.
This commit is contained in:
Nuno Góis 2024-03-15 11:54:31 +00:00 committed by GitHub
parent 2716f72ea6
commit fca6146b3a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -45,7 +45,7 @@ export const ProjectActionsActionSelect = ({
options={actionOptions}
autoHighlight
autoSelect
value={actionOptions.find(({ key }) => key === value)}
value={actionOptions.find(({ key }) => key === value) || null}
onChange={(_, value) => onChange(value ? value.key : '')}
renderOption={renderActionOption}
getOptionLabel={({ label }) => label}