Fix: Display all fields for submissions

This commit is contained in:
gpt-engineer-app[bot]
2025-10-09 16:00:16 +00:00
parent cf31f94c44
commit 6782da1992
2 changed files with 7 additions and 3 deletions

View File

@@ -149,9 +149,13 @@ export async function detectChanges(
let hasLocationChange = false;
if (action === 'create') {
// For creates, all fields are "added"
// For creates, all fields are "added" - be more permissive to show all data
Object.entries(itemData).forEach(([key, value]) => {
if (shouldTrackField(key) && value !== null && value !== undefined && value !== '') {
// For creates, exclude only system fields and internal metadata
const systemFields = ['id', 'created_at', 'updated_at', 'slug', 'images', 'image_assignments'];
const shouldShow = !systemFields.includes(key) && value !== null && value !== undefined && value !== '';
if (shouldShow) {
fieldChanges.push({
field: key,
oldValue: null,