Skip to content

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

fixes without Pro

sytolkab2e71c4d02e
diff --git a/src/renderer/components/LocationManager.tsx b/src/renderer/components/LocationManager.tsx
index 77e1317da..68e266bdb 100644
--- a/src/renderer/components/LocationManager.tsx
+++ b/src/renderer/components/LocationManager.tsx
@@ -99,11 +99,12 @@ function LocationManager(props: Props) {
function getWorkSpace(l) {
if (l.workSpaceId) {
- const wSpace = workSpacesContext.getWorkSpace(l.workSpaceId);
+ const wSpace = workSpacesContext?.getWorkSpace(l.workSpaceId);
if (wSpace) {
return wSpace;
}
}
+ return undefined;
}
return (