mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-22 09:31:12 -05:00
Fix: Show all affected fields in submissions
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user