diff --git a/frontend/src/hooks/useTransitionPlayback.ts b/frontend/src/hooks/useTransitionPlayback.ts index 5579513..5b29240 100644 --- a/frontend/src/hooks/useTransitionPlayback.ts +++ b/frontend/src/hooks/useTransitionPlayback.ts @@ -522,6 +522,7 @@ export function useTransitionPlayback( const response = await axios.get(url, { responseType: 'blob', headers: token ? { Authorization: `Bearer ${token}` } : undefined, + baseURL: '', // Prevent double /api/ prefix when using buildProxyUrl }); const blob = response.data as Blob; diff --git a/frontend/src/pages/dashboard.tsx b/frontend/src/pages/dashboard.tsx index 11681b4..29c3120 100644 --- a/frontend/src/pages/dashboard.tsx +++ b/frontend/src/pages/dashboard.tsx @@ -89,7 +89,7 @@ const Dashboard = () => { }); const { rolesWidgets, loading } = useAppSelector((state) => state.roles) as { - rolesWidgets: Array<{ id: string; [key: string]: unknown }>; + rolesWidgets: Array<{ id?: string; widget_id?: string; [key: string]: unknown }>; loading: boolean; }; @@ -161,9 +161,9 @@ const Dashboard = () => { )} {rolesWidgets && - rolesWidgets.map((widget) => ( + rolesWidgets.map((widget, index) => (