Skip to content

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

fix indexing on locations change

Ilian Sapundshiev79132a4c47c4
diff --git a/app/reducers/app.ts b/app/reducers/app.ts
index 47351d4d7..20801254f 100644
--- a/app/reducers/app.ts
+++ b/app/reducers/app.ts
@@ -984,7 +984,7 @@ export const actions = {
if (Pro && Pro.Watcher) {
Pro.Watcher.stopWatching();
}
- const currentLocationId = getState().app;
+ const { currentLocationId } = getState().app;
if (location.type === locationType.TYPE_CLOUD) {
PlatformIO.enableObjectStoreSupport(location)
.then(() => {