fix(ui): fix back compat

This commit is contained in:
nick-delirium 2024-02-22 13:03:14 +01:00
parent e207d37e69
commit 4955b2f9f4
No known key found for this signature in database
GPG key ID: 93ABD695DF5FDBA0
2 changed files with 4 additions and 1 deletions

View file

@ -38,7 +38,7 @@ interface IProps {
sessionId: string;
activeTab: string;
updateLastPlayedSession: (id: string) => void
videoURL: string;
videoURL: string[];
userDevice: string;
}

View file

@ -133,6 +133,7 @@ export interface ISession {
userUUID: string;
userEvents: any[];
timezone?: string;
videoURL?: string[]
}
const emptyValues = {
@ -240,6 +241,7 @@ export default class Session {
notes = [],
canvasURL = [],
uxtVideo = [],
videoURL = [],
...session
} = sessionData;
const duration = Duration.fromMillis(session.duration < 1000 ? 1000 : session.duration);
@ -332,6 +334,7 @@ export default class Session {
devtoolsURL,
notes,
canvasURL,
videoURL: Array.isArray(videoURL) ? videoURL : [videoURL],
notesWithEvents: mixedEventsWithIssues,
frustrations: frustrationList,
uxtVideo: uxtVideo[0],