Skip to content

Commit

Permalink
Reset hasLaunched after closing the instant launch dialog, so it can …
Browse files Browse the repository at this point in the history
…be reopened to launch again.
  • Loading branch information
ianmcorvidae committed Dec 3, 2024
1 parent b26b434 commit 429af30
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/instantlaunches/InstantLaunchButtonWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 429af30

Please sign in to comment.