mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 23:16:03 +01:00
feat(web/input): display value when no label is provided for select
This commit is contained in:
@@ -20,7 +20,7 @@ const SelectField: React.FC<Props> = (props) => {
|
||||
</option>
|
||||
{props.row.options?.map((option, index) => (
|
||||
<option key={`option-${index}`} value={option.value}>
|
||||
{option.label}
|
||||
{option.label ? option.label : option.value}
|
||||
</option>
|
||||
))}
|
||||
</Select>
|
||||
|
||||
Reference in New Issue
Block a user