From 4955b2f9f4d921ec79ee953a9dd54ee9a5cdabca Mon Sep 17 00:00:00 2001 From: nick-delirium Date: Thu, 22 Feb 2024 13:03:14 +0100 Subject: [PATCH] fix(ui): fix back compat --- .../app/components/Session/Player/MobilePlayer/PlayerInst.tsx | 2 +- frontend/app/types/session/session.ts | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/app/components/Session/Player/MobilePlayer/PlayerInst.tsx b/frontend/app/components/Session/Player/MobilePlayer/PlayerInst.tsx index 20d56b3bb..3752500b8 100644 --- a/frontend/app/components/Session/Player/MobilePlayer/PlayerInst.tsx +++ b/frontend/app/components/Session/Player/MobilePlayer/PlayerInst.tsx @@ -38,7 +38,7 @@ interface IProps { sessionId: string; activeTab: string; updateLastPlayedSession: (id: string) => void - videoURL: string; + videoURL: string[]; userDevice: string; } diff --git a/frontend/app/types/session/session.ts b/frontend/app/types/session/session.ts index f75b71587..09dccc4cc 100644 --- a/frontend/app/types/session/session.ts +++ b/frontend/app/types/session/session.ts @@ -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],