Fix: Show all affected fields in submissions

This commit is contained in:
gpt-engineer-app[bot]
2025-10-13 19:14:00 +00:00
parent 42d938462a
commit 2175c39d07

View File

@@ -125,7 +125,7 @@ export function SubmissionChangesDisplay({
)}
</div>
{changes.action === 'edit' && changes.totalChanges > 0 && (
{(changes.action === 'edit' || changes.action === 'create') && changes.totalChanges > 0 && (
<div className="flex flex-wrap gap-1">
{changes.fieldChanges.slice(0, 5).map((change, idx) => (
<FieldDiff key={idx} change={change} compact />
@@ -158,12 +158,6 @@ export function SubmissionChangesDisplay({
</div>
)}
{changes.action === 'create' && item.item_data?.description && (
<div className="text-sm text-muted-foreground line-clamp-2">
{item.item_data.description}
</div>
)}
{changes.action === 'delete' && (
<div className="text-sm text-destructive">
Marked for deletion