Skip to content

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

fixing issue with opening no local location after cloud location

Ilian Sapundshiev09c9bf7c6f1e
diff --git a/app/reducers/app.js b/app/reducers/app.js
index a942a45dd..9b63e421e 100644
--- a/app/reducers/app.js
+++ b/app/reducers/app.js
@@ -927,7 +927,7 @@ export const actions = {
if (location.uuid === locationId) {
if (location.type === locationType.TYPE_CLOUD) {
PlatformIO.enableObjectStoreSupport(location);
- } else if (location.type === locationType.TYPE_LOCAL) {
+ } else { // if (location.type === locationType.TYPE_LOCAL) {
PlatformIO.disableObjectStoreSupport();
}
dispatch(actions.setReadOnlyMode(location.isReadOnly || false));