Browse Source

fix: lint warnings

Tienson Qin 3 years ago
parent
commit
8d400bcaf0
2 changed files with 2 additions and 3 deletions
  1. 1 2
      src/main/frontend/components/block.cljs
  2. 1 1
      src/main/frontend/ui.cljs

+ 1 - 2
src/main/frontend/components/block.cljs

@@ -2402,8 +2402,7 @@
   [state config block]
   (let [repo (state/get-current-repo)
         ref? (:ref? config)
-        custom-query? (boolean (:custom-query? config))
-        ref-or-custom-query? (or ref? custom-query?)]
+        custom-query? (boolean (:custom-query? config))]
     (if (and ref? (not custom-query?) (not (:ref-query-child? config)))
       (ui/lazy-visible
        (fn []

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

@@ -927,7 +927,7 @@
                                                           (reset! *height height')))))]
                    (.observe observer @(::ref state))))
                 state)}
-  [state visible? content-fn reset-height?]
+  [state visible? content-fn _reset-height?]
   [:div.lazy-visibility {:ref #(reset! (::ref state) %)
                          :style {:min-height @(::height state)}}