Skip to content

Commit

Permalink
Handle navigating to /organisation-settings when user has no organisa…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
kyle-ssg committed May 3, 2024
1 parent 3d98845 commit eb20a9a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ const OrganisationSettingsRedirectPage: FC<
router.history.replace(
`/organisation/${AccountStore.getOrganisation().id}/settings`,
)
} else {
router.history.replace('/organisations')
}
}, [])
return (
Expand Down
1 change: 0 additions & 1 deletion frontend/web/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ import ProjectsPage from './components/ProjectsPage'
import OrganisationSettingsRedirectPage from './components/pages/OrganisationSettingsRedirectPage'
import OrganisationUsagePage from './components/pages/OrganisationUsagePage'
import OrganisationsPage from './components/pages/OrganisationsPage'
import PageTitle from './components/PageTitle'
import UsersAndPermissionsPage from './components/pages/UsersAndPermissionsPage'
import ProjectRedirectPage from './components/pages/ProjectRedirectPage'

Expand Down

0 comments on commit eb20a9a

Please sign in to comment.