Skip to content

Commit

Permalink
[MS] Prevent from creating a workspace twice using the back button
Browse files Browse the repository at this point in the history
  • Loading branch information
Max-7 committed Sep 16, 2024
1 parent 2d7ec2d commit d1ba8fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/views/workspaces/WorkspacesPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ const routeWatchCancel = watchRoute(async () => {
const query = getCurrentRouteQuery();
if (query.workspaceName) {
await createWorkspace(query.workspaceName);
await navigateTo(Routes.Workspaces, { query: {} });
await navigateTo(Routes.Workspaces, { replace: true, query: {} });
} else if (query.fileLink) {
const success = await handleFileLink(query.fileLink);
if (!success) {
Expand Down

0 comments on commit d1ba8fa

Please sign in to comment.