From 61641db6efc78dc7e7348d8cbee4615b0c25ac04 Mon Sep 17 00:00:00 2001 From: David Liu Date: Thu, 21 Nov 2024 14:01:36 -0500 Subject: [PATCH] address comment --- js_modules/dagster-ui/packages/ui-core/src/runs/RunUtils.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/RunUtils.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/RunUtils.tsx index 9f099166b1070..6a17b5cfc530c 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/RunUtils.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/RunUtils.tsx @@ -154,7 +154,6 @@ export async function handleLaunchMultipleResult( if (options.behavior === 'open') { openInSameTab(); } - document.dispatchEvent(new CustomEvent('run-launched')); } else if (individualResult.__typename === 'PythonError') { failedRunsErrors.push({message: individualResult.message}); } else { @@ -181,6 +180,7 @@ export async function handleLaunchMultipleResult( } } } + document.dispatchEvent(new CustomEvent('run-launched')); // link to runs page filtered to run IDs const params = new URLSearchParams();