Skip to content

Commit

Permalink
Fixed a bug causing error page when new users signs up (#3198)
Browse files Browse the repository at this point in the history
* Fixed a bug causing error page when new users signs up

* lint fix
  • Loading branch information
harshilsharma63 authored Jun 8, 2022
1 parent 7f92907 commit 7b293e1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions webapp/src/pages/errorPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ const ErrorPage = () => {
const errid = queryString.get('id')
const errorDef = errorDefFromId(errid as ErrorId)

if (errid === ErrorId.WorkspaceUndefined) {
UserSettings.lastWorkspaceId = null
history.push('/dashboard')
return null
}

const handleButtonClick = useCallback((path: string | (()=>string), clearHistory: boolean) => {
let url = '/'
if (typeof path === 'function') {
Expand Down

0 comments on commit 7b293e1

Please sign in to comment.