Skip to content

Commit 1729f2b

Browse files
committed
Clearing location doesn't work and doesn't seem necessary
1 parent 09d2214 commit 1729f2b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

site/src/pages/WorkspacePage/WorkspaceReadyPage.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export const WorkspaceReadyPage = ({
3737
workspaceState,
3838
quotaState,
3939
workspaceSend,
40-
shouldRestartWorkspace
40+
shouldRestartWorkspace,
4141
}: WorkspaceReadyPageProps): JSX.Element => {
4242
const [bannerState, bannerSend] = useActor(
4343
workspaceState.children["scheduleBannerMachine"],
@@ -76,8 +76,6 @@ export const WorkspaceReadyPage = ({
7676
useEffect(() => {
7777
// workspaces can be started without being stopped first
7878
shouldRestartWorkspace && workspaceSend({ type: "START" })
79-
// clear location state
80-
window.history.replaceState({}, document.title)
8179
}, [shouldRestartWorkspace, workspaceSend])
8280

8381
return (

0 commit comments

Comments
 (0)