We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5d39d49 + e64680e commit 7907672Copy full SHA for 7907672
client/modules/IDE/actions/project.js
@@ -270,9 +270,7 @@ export function resetProject() {
270
}
271
272
export function newProject() {
273
- setTimeout(() => {
274
- browserHistory.push('/');
275
- }, 0);
+ browserHistory.push('/', { confirmed: true });
276
return resetProject();
277
278
client/modules/IDE/pages/IDEView.jsx
@@ -56,7 +56,8 @@ function WarnIfUnsavedChanges() {
56
isAuth(nextLocation.pathname) ||
57
isAuth(currentLocation.pathname) ||
58
isOverlay(nextLocation.pathname) ||
59
- isOverlay(currentLocation.pathname)
+ isOverlay(currentLocation.pathname) ||
60
+ nextLocation.state?.confirmed
61
) {
62
return true; // allow navigation
63
0 commit comments