Skip to content

Commit 4950a54

Browse files
Copilothotlong
andcommitted
fix: remove orphaned JSX code in MasterDetailField.tsx causing TypeScript errors
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 154de20 commit 4950a54

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

packages/fields/src/widgets/MasterDetailField.tsx

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -128,31 +128,4 @@ export function MasterDetailField({
128128
</Button>
129129
</div>
130130
);
131-
} disabled={readonly || props.disabled}
132-
>
133-
<X className="w-4 h-4" />
134-
</Button>
135-
</div>
136-
</div>
137-
))}
138-
</div>
139-
140-
{!readonly && (
141-
<Button
142-
type="button"
143-
variant="outline"
144-
size="sm"
145-
onClick={handleAdd}
146-
className="w-full"
147-
>
148-
<Plus className="w-4 h-4 mr-2" />
149-
Add Related Record
150-
</Button>
151-
)}
152-
153-
<p className="text-xs text-muted-foreground">
154-
{items.length} {items.length === 1 ? 'record' : 'records'}
155-
</p>
156-
</div>
157-
);
158131
}

0 commit comments

Comments
 (0)