feat: invalidate runs during robot run
This commit is contained in:
@@ -142,8 +142,9 @@ export const MainPage = ({ handleEditRecording, initialContent }: MainPageProps)
|
|||||||
const handleRunRecording = useCallback((settings: RunSettings) => {
|
const handleRunRecording = useCallback((settings: RunSettings) => {
|
||||||
createAndRunRecording(runningRecordingId, settings).then((response: CreateRunResponseWithQueue) => {
|
createAndRunRecording(runningRecordingId, settings).then((response: CreateRunResponseWithQueue) => {
|
||||||
const { browserId, runId, robotMetaId, queued } = response;
|
const { browserId, runId, robotMetaId, queued } = response;
|
||||||
|
|
||||||
setIds({ browserId, runId, robotMetaId });
|
setIds({ browserId, runId, robotMetaId });
|
||||||
|
invalidateRuns();
|
||||||
navigate(`/runs/${robotMetaId}/run/${runId}`);
|
navigate(`/runs/${robotMetaId}/run/${runId}`);
|
||||||
|
|
||||||
if (queued) {
|
if (queued) {
|
||||||
|
|||||||
Reference in New Issue
Block a user