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:
parent
2716f72ea6
commit
fca6146b3a
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user