Skip to content

Commit

Permalink
Update packages/vue/src/helpers.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Yuval Lotem <106734943+yuvalotem1@users.noreply.github.com>
  • Loading branch information
TomerFrontegg and yuvalotem1 authored Mar 3, 2024
1 parent a684a8b commit ec50db2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vue/src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,5 +117,5 @@ export const simpleMappers = (subState: string, props: any, getter: any) => func
* @returns router base name
*/
export const getRouterBaseName = (router?: VueRouter): string | undefined => {
return router?.options.base || (router?.options as any).history?.base
return router?.options.base ?? (router?.options as any).history?.base
}

0 comments on commit ec50db2

Please sign in to comment.