Browse Source

enhance: use pos-int? to check default-open-blocks-level

Tienson Qin 5 months ago
parent
commit
fa12411042
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/frontend/state.cljs

+ 1 - 1
src/main/frontend/state.cljs

@@ -619,7 +619,7 @@ should be done through this fn in order to get global config and config defaults
   []
   (or
    (when-let [value (:ref/default-open-blocks-level (get-config))]
-     (when (integer? value)
+     (when (pos-int? value)
        (min value 9)))
    2))