mirror of
https://github.com/zhigang1992/firecms.git
synced 2026-06-17 02:51:51 +08:00
Fix for wrong colors in Chip enum values
This commit is contained in:
@@ -69,7 +69,7 @@ export default function Select<T extends EnumType>({
|
||||
{Object.entries(enumValues).map(([key, value]) => (
|
||||
<MenuItem key={`select-${key}`} value={key}>
|
||||
<CustomChip
|
||||
colorKey={field.name}
|
||||
colorKey={typeof key === "number" ? `${field.name}_${key}` : key as string}
|
||||
label={value as string}
|
||||
error={!value}
|
||||
outlined={false}
|
||||
|
||||
Reference in New Issue
Block a user