Skip to content

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

fix: disable showing maps for geo tags

Ilian Sapundshiev0af0fcb38ba7
diff --git a/app/components/EntryProperties.tsx b/app/components/EntryProperties.tsx
index 1a7091a11..17145d39d 100644
--- a/app/components/EntryProperties.tsx
+++ b/app/components/EntryProperties.tsx
@@ -630,6 +630,9 @@ const EntryProperties = (props: Props) => {
});
function getGeoLocation(tags: Array<Tag>) {
+ if (!Pro) {
+ return;
+ }
if (tags) {
for (let i = 0; i < tags.length; i += 1) {
if (isPlusCode(tags[i].title)) {
@@ -640,7 +643,6 @@ const EntryProperties = (props: Props) => {
}
}
}
- return undefined;
}
const geoLocation: any = getGeoLocation(currentEntry.tags);