From c7fe25d935de825ec9902410ed67a8ed413b97a7 Mon Sep 17 00:00:00 2001 From: Jonathan Sick Date: Thu, 28 Mar 2024 12:32:38 -0400 Subject: [PATCH] fix --- .../TimesSquareUrlParametersProvider.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/squareone/src/components/TimesSquareUrlParametersProvider/TimesSquareUrlParametersProvider.js b/apps/squareone/src/components/TimesSquareUrlParametersProvider/TimesSquareUrlParametersProvider.js index 05ea4783..6bc098af 100644 --- a/apps/squareone/src/components/TimesSquareUrlParametersProvider/TimesSquareUrlParametersProvider.js +++ b/apps/squareone/src/components/TimesSquareUrlParametersProvider/TimesSquareUrlParametersProvider.js @@ -24,7 +24,7 @@ export default function TimesSquareUrlParametersProvider({ children }) { // path to get the full slug. This combines the owner, repo, directory, and // notebook name for regular /github/ pages, or just the directory and // notebook name for /github-pr/ pages. - const githubSlug = tsSlug.join('/'); + const githubSlug = tsSlug ? tsSlug.join('/') : null; // Construct the URL for the Times Square API endpoint that gives information // about the page. GitHub PR pages (github-pr) have different API URLs than