Skip to content

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

Geo-tagged folders are not shown in the Mapique perspective (#1813)

Stanimir2b890e1bd6df
diff --git a/app/package.json b/app/package.json
index 5cef01f68..e9ecc7f51 100644
--- a/app/package.json
+++ b/app/package.json
@@ -16,7 +16,7 @@
"@tagspaces/extensions": "1.0.48"
},
"nodeDependencies": {
- "@tagspaces/tagspaces-ws": "2.1.2",
+ "@tagspaces/tagspaces-ws": "2.1.9",
"@tagspaces/extensions": "1.0.48",
"sharp": "^0.30.7"
}
diff --git a/app/services/utils-io.ts b/app/services/utils-io.ts
index 1d6357f8e..b440fb17e 100644
--- a/app/services/utils-io.ts
+++ b/app/services/utils-io.ts
@@ -154,8 +154,26 @@ export function enhanceDirectoryContent(
export async function getMetaForEntry(
entry: TS.FileSystemEntry,
- metaFilePath: string
+ metaFilePath?: string
): Promise<any> {
+ if (entry.meta) {
+ // && Object.keys(entry.meta).length > 0) {
+ // entry is Enhanced
+ return { [entry.path]: { ...entry } };
+ }
+ if (!metaFilePath) {
+ if (entry.isFile) {
+ metaFilePath = getMetaFileLocationForFile(
+ entry.path,
+ PlatformIO.getDirSeparator()
+ );
+ } else {
+ metaFilePath = getMetaFileLocationForDir(
+ entry.path,
+ PlatformIO.getDirSeparator()
+ );
+ }
+ }
const meta: TS.FileSystemEntryMeta = await loadJSONFile(metaFilePath);
if (meta) {
const entryEnhanced = enhanceEntry(
diff --git a/package.json b/package.json
index 02a6e56cb..d37a4570e 100644
--- a/package.json
+++ b/package.json
@@ -158,7 +158,7 @@
"@mui/styles": "5.10.15",
"@mui/x-date-pickers": "^5.0.8",
"@tagspaces/tagspaces-md": "2.1.6",
- "@tagspaces/tagspaces-platforms": "2.1.7",
+ "@tagspaces/tagspaces-platforms": "2.1.9",
"aws-amplify": "^4.3.8",
"aws-sdk": "^2.1036.0",
"babel-polyfill": "^6.26.0",