Skip to content

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

fix: mgrs tagging

Ilian Sapundshiev6ef21c4f629a
diff --git a/app/reducers/tagging-actions.ts b/app/reducers/tagging-actions.ts
index 118997510..f1eb907cc 100644
--- a/app/reducers/tagging-actions.ts
+++ b/app/reducers/tagging-actions.ts
@@ -62,7 +62,7 @@ const actions = {
) => (dispatch: (actions: Object) => void, getState: () => any) => {
const { settings, taglibrary } = getState();
let defaultTagLocation;
- if (settings.geoTaggingFormat === 'MGRS') {
+ if (settings.geoTaggingFormat.toLowerCase() === 'mgrs') {
defaultTagLocation = mgrs.forward([0, 51.48]);
} else {
defaultTagLocation = OpenLocationCode.encode(51.48, 0, undefined);