Fix: Add type field to submissions

This commit is contained in:
gpt-engineer-app[bot]
2025-10-15 14:31:21 +00:00
parent fd99eecfb4
commit ac3206625e

View File

@@ -234,8 +234,14 @@ export async function fetchSubmissions(
throw submissionsError;
}
// Enrich submissions with type field for UI conditional logic
const enrichedSubmissions = (submissions || []).map(sub => ({
...sub,
type: 'content_submission' as const,
}));
return {
submissions: submissions || [],
submissions: enrichedSubmissions,
totalCount: count || 0,
};
} catch (error) {