From 2087c276711e8c14c5edc3e962e4fd5e85b59a10 Mon Sep 17 00:00:00 2001 From: Eduard Heimbuch Date: Fri, 13 Nov 2020 12:50:59 +0100 Subject: [PATCH] fix frontend react error --- scm-ui/ui-components/src/repos/diffs.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scm-ui/ui-components/src/repos/diffs.ts b/scm-ui/ui-components/src/repos/diffs.ts index 029803a0a4..0f39f3a4dc 100644 --- a/scm-ui/ui-components/src/repos/diffs.ts +++ b/scm-ui/ui-components/src/repos/diffs.ts @@ -41,5 +41,5 @@ export function createHunkIdentifierFromContext(ctx: BaseContext) { } export function escapeWhitespace(path: string) { - return path.toLowerCase().replace(/\W/g, "-"); + return path?.toLowerCase().replace(/\W/g, "-"); }