From 7ee12216dbd5b2d2cb2c502541247bbd76dfd490 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Thu, 10 Oct 2024 04:29:24 +0530 Subject: [PATCH] feat: set recordingId --- src/pages/MainPage.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/MainPage.tsx b/src/pages/MainPage.tsx index adb0a1f3..34d6811d 100644 --- a/src/pages/MainPage.tsx +++ b/src/pages/MainPage.tsx @@ -42,7 +42,7 @@ export const MainPage = ({ handleEditRecording }: MainPageProps) => { let aborted = false; - const { notify, setRerenderRuns } = useGlobalInfoStore(); + const { notify, setRerenderRuns, setRecordingId } = useGlobalInfoStore(); const abortRunHandler = (runId: string) => { aborted = true; @@ -58,6 +58,7 @@ export const MainPage = ({ handleEditRecording }: MainPageProps) => { const setRecordingInfo = (id: string, name: string) => { setRunningRecordingId(id); + setRecordingId(id); setRunningRecordingName(name); }