fix frontend react error

This commit is contained in:
Eduard Heimbuch
2020-11-13 12:50:59 +01:00
committed by René Pfeuffer
parent a0e7073bdf
commit 2087c27671

View File

@@ -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, "-");
}