Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions src/components/molecular/UserAuditTrail/UserAuditTrail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,7 @@ export default function UserAuditTrail({
setEntries([]);
return;
}
// Cast via `unknown`: the generated src/lib/supabase/types.ts is stale —
// its `auth_audit_logs.Row` omits the `success` / `error_message` columns
// that exist in the live table + the monolithic migration, so the query
// builder mis-infers a SelectQueryError. The runtime row has `success`.
// (Regenerating the Supabase types is tracked separately, out of #23 scope.)
setEntries((data ?? []) as unknown as UserAuditEntry[]);
setEntries((data ?? []) as UserAuditEntry[]);
}

void load();
Expand Down
Loading
Loading