fix: remove unused index prop from IntakeFieldEditor

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Michael Chihlas
2026-02-14 22:21:00 -05:00
parent 60e52763a7
commit a95ef192fb
2 changed files with 1 additions and 3 deletions

View File

@@ -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'

View File

@@ -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)}
/>