Skip to content

Commit 8bb2ed3

Browse files
committed
feat: add robot met id in local storage
1 parent e077306 commit 8bb2ed3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/pages/MainPage.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ export const MainPage = ({ handleEditRecording, initialContent }: MainPageProps)
100100
localStorage.setItem('runningRobot', JSON.stringify({
101101
browserId,
102102
runId,
103+
robotMetaId,
103104
recordingName: runningRecordingName
104105
}));
105106

@@ -144,9 +145,9 @@ export const MainPage = ({ handleEditRecording, initialContent }: MainPageProps)
144145

145146
if (storedRobotInfo) {
146147
try {
147-
const { browserId, runId, recordingName } = JSON.parse(storedRobotInfo);
148+
const { browserId, runId, robotMetaId, recordingName } = JSON.parse(storedRobotInfo);
148149

149-
setIds({ browserId, runId });
150+
setIds({ browserId, runId, robotMetaId });
150151
setRunningRecordingName(recordingName);
151152
setContent('runs');
152153

0 commit comments

Comments
 (0)