Skip to content

Commit

Permalink
Use Navigate in lieu fo window history for improved stability (& fixe…
Browse files Browse the repository at this point in the history
…s needing to 'double cancel' out of some forms, like the EPICollection form)
  • Loading branch information
BirdMachine committed Oct 15, 2024
1 parent 94202d3 commit 6cf9026
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,8 @@ export function App (props){
};

function handleCancel(){
window.history.back();
// window.history.back();
navigate("/");
}
const onClose = (event, reason) => {
navigate("/");
Expand Down

0 comments on commit 6cf9026

Please sign in to comment.