04e0911e9f
Bug fixes: - TeamInvoices: add useAuth import/currentUser (invoice-create crash) - TeamInvoices: setChartYear -> setExportYear (year-dropdown crash) - TeamDashboard: drop redundant setState-in-effect (cascading renders) - Companies: delete dead _UnusedClientCompanies (illegal hook calls) - annotate intentional empty PDF-fallback catches Load speed: - preconnect/dns-prefetch to Supabase origin - lazy-load heic-to in Converters: page chunk 2737KB -> 9KB - split recharts into its own 'charts' vendor chunk Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
6 lines
195 B
SQL
6 lines
195 B
SQL
update public.submissions as s
|
|
set submitted_by_name = p.name
|
|
from public.profiles as p
|
|
where s.submitted_by = p.id
|
|
and coalesce(s.submitted_by_name, '') is distinct from coalesce(p.name, '');
|