fixed playback

This commit is contained in:
Dmitri 2026-04-07 16:54:54 +04:00
parent 7d251319f2
commit 4b573c1433
2 changed files with 4 additions and 3 deletions

View File

@ -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;

View File

@ -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) => (
<SmartWidget
key={widget.id}
key={widget.id || widget.widget_id || `widget-${index}`}
userId={currentUser?.id}
widget={widget}
roleId={widgetsRole?.role?.value || ''}