From 429af3058ec30dc6aaef8a15d3d45a60f576fd34 Mon Sep 17 00:00:00 2001 From: Ian McEwen Date: Tue, 3 Dec 2024 12:59:23 -0700 Subject: [PATCH] Reset hasLaunched after closing the instant launch dialog, so it can be reopened to launch again. --- src/components/instantlaunches/InstantLaunchButtonWrapper.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/instantlaunches/InstantLaunchButtonWrapper.js b/src/components/instantlaunches/InstantLaunchButtonWrapper.js index c31280a0d..ac6e106cb 100644 --- a/src/components/instantlaunches/InstantLaunchButtonWrapper.js +++ b/src/components/instantlaunches/InstantLaunchButtonWrapper.js @@ -74,6 +74,8 @@ function InstantLaunchButtonWrapper(props) { window.open(`${getHost()}${ilUrl}`); setIlUrl(null); setOpen(false); + // reset the value so after it closes you can launch a second by reopening + setHasLaunched(false); if (autolaunch) { // go to the analysis landing, not keeping this page in browser history router.replace(landingUrl);