From c8d66807bcd7bb8c17fca0c2f7253326c0083bff Mon Sep 17 00:00:00 2001 From: Mike Decker Date: Mon, 20 Nov 2023 23:51:13 -0800 Subject: [PATCH] fixed type --- src/lib/drupal/utils.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/drupal/utils.tsx b/src/lib/drupal/utils.tsx index f634e52d..313e1ec2 100644 --- a/src/lib/drupal/utils.tsx +++ b/src/lib/drupal/utils.tsx @@ -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