fix: remove unused index prop from IntakeFieldEditor
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -17,12 +17,11 @@ const FIELD_TYPE_OPTIONS: { value: IntakeFieldType; label: string }[] = [
|
||||
|
||||
interface IntakeFieldEditorProps {
|
||||
field: IntakeFormField
|
||||
index: number
|
||||
onUpdate: (updates: Partial<IntakeFormField>) => void
|
||||
onRemove: () => void
|
||||
}
|
||||
|
||||
export function IntakeFieldEditor({ field, index: _index, onUpdate, onRemove }: IntakeFieldEditorProps) {
|
||||
export function IntakeFieldEditor({ field, onUpdate, onRemove }: IntakeFieldEditorProps) {
|
||||
const [expanded, setExpanded] = useState(false)
|
||||
const needsOptions = field.field_type === 'select' || field.field_type === 'multi_select'
|
||||
|
||||
|
||||
@@ -38,7 +38,6 @@ export function IntakeFormBuilder() {
|
||||
<IntakeFieldEditor
|
||||
key={`field-${index}-${field.display_order}`}
|
||||
field={field}
|
||||
index={index}
|
||||
onUpdate={(updates) => updateField(index, updates)}
|
||||
onRemove={() => removeField(index)}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user