Skip to content

Commit

Permalink
Merge pull request #124 from contember/pr/default-routing
Browse files Browse the repository at this point in the history
ApplicationEntrypoint: add default route for 'index' page
  • Loading branch information
JanTvrdik authored Jan 17, 2022
2 parents e5fbe1d + a4a896f commit 98f2f8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/admin/src/components/ApplicationEntrypoint.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { Toaster, ToasterProvider } from './Toaster'
export interface ApplicationEntrypointProps extends ContemberClientProps {
basePath?: string
sessionToken?: string
routes: RouteMap
routes?: RouteMap
defaultDimensions?: SelectedDimension
defaultLocale?: string
dictionaries?: MessageDictionaryByLocaleCode
Expand All @@ -31,7 +31,7 @@ export const ApplicationEntrypoint = (props: ApplicationEntrypointProps) => {

const routing: RoutingContextValue = {
basePath: props.basePath ?? '/',
routes: props.routes,
routes: props.routes ?? { index: { path: '/' } },
defaultDimensions: props.defaultDimensions,
}

Expand Down

0 comments on commit 98f2f8e

Please sign in to comment.