feat: invalidate runs during robot run

This commit is contained in:
Rohit Rajan
2025-09-21 12:45:27 +05:30
parent 47eb3fc7b4
commit 6c1d6612a4

View File

@@ -142,8 +142,9 @@ export const MainPage = ({ handleEditRecording, initialContent }: MainPageProps)
const handleRunRecording = useCallback((settings: RunSettings) => {
createAndRunRecording(runningRecordingId, settings).then((response: CreateRunResponseWithQueue) => {
const { browserId, runId, robotMetaId, queued } = response;
setIds({ browserId, runId, robotMetaId });
invalidateRuns();
navigate(`/runs/${robotMetaId}/run/${runId}`);
if (queued) {