1
0
Эх сурвалжийг харах

fix(cards): only check when enabled

Andelf 3 жил өмнө
parent
commit
60c559bb24

+ 5 - 3
src/main/frontend/state.cljs

@@ -365,9 +365,11 @@
                 (get (sub-config) repo)))))
                 (get (sub-config) repo)))))
 
 
 (defn enable-flashcards?
 (defn enable-flashcards?
-  [repo]
-  (not (false? (:feature/enable-flashcards?
-                (get (sub-config) repo)))))
+  ([]
+   (enable-flashcards? (get-current-repo)))
+  ([repo]
+   (not (false? (:feature/enable-flashcards?
+                 (get (sub-config) repo))))))
 
 
 (defn export-heading-to-list?
 (defn export-heading-to-list?
   []
   []