From 0d2f8e175ad01f4eed7487c798a6bf658a86a6c1 Mon Sep 17 00:00:00 2001 From: Jay V Date: Fri, 20 Jun 2025 15:47:34 -0400 Subject: [PATCH] docs: share bugs --- packages/web/src/components/Share.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/web/src/components/Share.tsx b/packages/web/src/components/Share.tsx index 410fc24e..0671f49f 100644 --- a/packages/web/src/components/Share.tsx +++ b/packages/web/src/components/Share.tsx @@ -86,7 +86,7 @@ function scrollToAnchor(id: string) { } function stripWorkingDirectory(filePath: string, workingDir?: string) { - if (workingDir === undefined) return filePath + if (filePath === undefined || workingDir === undefined) return filePath const prefix = workingDir.endsWith("/") ? workingDir : workingDir + "/"