mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-23 23:31:12 -05:00
Fix edge function logging and types
This commit is contained in:
@@ -93,7 +93,16 @@ export function useEntityVersions(entityType: EntityType, entityId: string) {
|
||||
return;
|
||||
}
|
||||
|
||||
const versionsWithProfiles = (data || []).map((v: any) => ({
|
||||
interface VersionWithProfile {
|
||||
profiles?: {
|
||||
username: string;
|
||||
display_name: string;
|
||||
avatar_url: string | null;
|
||||
};
|
||||
[key: string]: unknown;
|
||||
}
|
||||
|
||||
const versionsWithProfiles = (data || []).map((v: VersionWithProfile) => ({
|
||||
...v,
|
||||
profiles: v.profiles || {
|
||||
username: 'Unknown',
|
||||
|
||||
Reference in New Issue
Block a user