Skip to content

Commit

Permalink
fixed type
Browse files Browse the repository at this point in the history
  • Loading branch information
pookmish committed Nov 21, 2023
1 parent 9509126 commit c8d6680
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/drupal/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const buildUrl = (
export function getPathFromContext(
context: PageProps,
prefix = ""
): string | string[] {
): string {
let {slug} = context.params

slug = Array.isArray(slug) ? slug.map((s) => encodeURIComponent(s)).join("/") : slug
Expand Down

1 comment on commit c8d6680

@vercel
Copy link

@vercel vercel bot commented on c8d6680 Nov 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.