Browse Source

fix: settings blank when there's no graph yet

Tienson Qin 4 years ago
parent
commit
d9938421c0
2 changed files with 1 additions and 2 deletions
  1. 0 1
      ios/App/App/capacitor.config.json
  2. 1 1
      src/main/frontend/components/settings.cljs

+ 0 - 1
ios/App/App/capacitor.config.json

@@ -9,7 +9,6 @@
 			"launchAutoHide": false,
 			"androidScaleType": "CENTER_CROP",
 			"splashImmersive": false,
-			"showSpinner": true,
 			"backgroundColor": "#002b36"
 		}
 	},

+ 1 - 1
src/main/frontend/components/settings.cljs

@@ -484,7 +484,7 @@
         (route-handler/redirect! {:to :zotero-setting})))]]])
 
 (defn auto-push-row [t current-repo enable-git-auto-push?]
-  (when (string/starts-with? current-repo "https://")
+  (when (and current-repo (string/starts-with? current-repo "https://"))
     (toggle "enable_git_auto_push"
             "Enable Git auto push"
             enable-git-auto-push?