Skip to content

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

fixing issue with the watcher

Ilian Sapundshieva140e0d05376
diff --git a/app/reducers/app.js b/app/reducers/app.js
index 191b741ae..c6e29b3cd 100644
--- a/app/reducers/app.js
+++ b/app/reducers/app.js
@@ -923,9 +923,9 @@ export const actions = {
Pro.Watcher.stopWatching();
}
- // if (Pro) { // && s3location
- // PlatformIO.enableObjectStoreSupport({});
- // }
+ /* if (Pro) { // && s3location
+ PlatformIO.enableObjectStoreSupport({});
+ } */
locations.map(location => {
if (location.uuid === locationId) {
@@ -937,7 +937,7 @@ export const actions = {
dispatch(actions.createDirectoryIndex(location.paths[0]));
}
if (Pro && Pro.Watcher && location.watchForChanges) {
- Pro.Watcher.watchFolder(location.paths[0], dispatch);
+ Pro.Watcher.watchFolder(location.paths[0], dispatch, actions);
}
}
return true;