Skip to content

TagSpaces is an offline, open source, document manager with tagging support

fix package issue with currentDirectoryPath

sytolkd0737fd21bba
diff --git a/app/components/PathBreadcrumbs.tsx b/app/components/PathBreadcrumbs.tsx
index aeaa079cf..435b5d4c7 100644
--- a/app/components/PathBreadcrumbs.tsx
+++ b/app/components/PathBreadcrumbs.tsx
@@ -105,9 +105,9 @@ function PathBreadcrumbs(props: Props) {
setDirectoryContextMenuAnchorEl(null);
};
- const normalizedCurrentDirPath = normalizePath(
- currentDirectoryPath.split('\\').join('/')
- );
+ const normalizedCurrentDirPath = currentDirectoryPath
+ ? normalizePath(currentDirectoryPath.split('\\').join('/'))
+ : undefined;
const locationTypeIcon =
currentLocation && currentLocation.type === locationType.TYPE_CLOUD ? (