Skip to content

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

chore: fix issue with not showing smarttags

Ilian Sapundshiev0e27d208bb3c
diff --git a/src/renderer/components/TagLibrary.tsx b/src/renderer/components/TagLibrary.tsx
index 6cede5328..726c8dabd 100644
--- a/src/renderer/components/TagLibrary.tsx
+++ b/src/renderer/components/TagLibrary.tsx
@@ -352,12 +352,11 @@ function TagLibrary({ reduceHeightBy }: Props) {
}}
data-tid="tagLibraryTagGroupList"
>
- {AppConfig.ExtShowSmartTags === undefined ||
- (AppConfig.ExtShowSmartTags && (
- <Box sx={{ paddingTop: 0, paddingBottom: 0 }}>
- {SmartTags(t).map(renderTagGroup)}
- </Box>
- ))}
+ {AppConfig.ExtShowSmartTags && (
+ <Box sx={{ paddingTop: 0, paddingBottom: 0 }}>
+ {SmartTags(t).map(renderTagGroup)}
+ </Box>
+ )}
<Box sx={{ paddingTop: 0 }}>{wSpaceTagGroups.map(renderTagGroup)}</Box>
</Box>
</Box>
diff --git a/src/renderer/reducers/index.ts b/src/renderer/reducers/index.ts
index d0572c028..2e010743e 100644
--- a/src/renderer/reducers/index.ts
+++ b/src/renderer/reducers/index.ts
@@ -79,8 +79,7 @@ function configureApp(extConfigObj) {
extConfigObj.ExtDefaultMapBounds ?? AppConfig.ExtDefaultMapBounds;
AppConfig.ExtDefaultVerticalPanel =
extConfigObj.ExtDefaultVerticalPanel ?? AppConfig.ExtDefaultVerticalPanel; // do not work should be refactored in app.ts
- AppConfig.ExtShowSmartTags =
- extConfigObj.ExtShowSmartTags ?? AppConfig.ExtShowSmartTags;
+ AppConfig.ExtShowSmartTags = extConfigObj.ExtShowSmartTags ?? true;
AppConfig.ExtUseLocationTags =
extConfigObj.ExtUseLocationTags ?? AppConfig.ExtUseLocationTags;
AppConfig.ExtHideProFeatures = extConfigObj.ExtHideProFeatures ?? false;
@@ -159,7 +158,8 @@ let externalSearches = false;
configureApp(window); // Configuring from extconfig.js if loaded
const xhr = new XMLHttpRequest();
-xhr.open('GET', '../../../../extconfig.json', false); // false = synchronous ../../../../extconfig.json
+// for prod: '../../../../extconfig.json' for run dev 'extconfig.json' in public/
+xhr.open('GET', '../../../../extconfig.json', false); // false = synchronous
try {
xhr.send(); // Will pause execution here until it finishes or fails
// Status 200 is for HTTP servers, Status 0 is for local file:// protocol