fixed playback
This commit is contained in:
parent
7d251319f2
commit
4b573c1433
@ -522,6 +522,7 @@ export function useTransitionPlayback(
|
|||||||
const response = await axios.get(url, {
|
const response = await axios.get(url, {
|
||||||
responseType: 'blob',
|
responseType: 'blob',
|
||||||
headers: token ? { Authorization: `Bearer ${token}` } : undefined,
|
headers: token ? { Authorization: `Bearer ${token}` } : undefined,
|
||||||
|
baseURL: '', // Prevent double /api/ prefix when using buildProxyUrl
|
||||||
});
|
});
|
||||||
|
|
||||||
const blob = response.data as Blob;
|
const blob = response.data as Blob;
|
||||||
|
|||||||
@ -89,7 +89,7 @@ const Dashboard = () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const { rolesWidgets, loading } = useAppSelector((state) => state.roles) as {
|
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;
|
loading: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -161,9 +161,9 @@ const Dashboard = () => {
|
|||||||
)}
|
)}
|
||||||
|
|
||||||
{rolesWidgets &&
|
{rolesWidgets &&
|
||||||
rolesWidgets.map((widget) => (
|
rolesWidgets.map((widget, index) => (
|
||||||
<SmartWidget
|
<SmartWidget
|
||||||
key={widget.id}
|
key={widget.id || widget.widget_id || `widget-${index}`}
|
||||||
userId={currentUser?.id}
|
userId={currentUser?.id}
|
||||||
widget={widget}
|
widget={widget}
|
||||||
roleId={widgetsRole?.role?.value || ''}
|
roleId={widgetsRole?.role?.value || ''}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user