diff --git a/src/components/settings/fields.tsx b/src/components/settings/fields.tsx index 6e70b1e..f9a73db 100644 --- a/src/components/settings/fields.tsx +++ b/src/components/settings/fields.tsx @@ -419,6 +419,16 @@ export function SelectField({ element, onChange, ...rest }: FieldComponentProps) ); const selectedLabel = selectedOption?.label ?? selectedOption?.title; + // Resolve a per-option icon by lucide name (same convention as `element.icon`). + const renderOptionIcon = (iconName?: string) => { + if (!iconName) return null; + const Icon = LucideIcons[ + iconName as keyof typeof LucideIcons + ] as React.ElementType | undefined; + return Icon ? : null; + }; + const selectedIcon = (selectedOption as { icon?: string } | undefined)?.icon; + return (