fix: lint warnings

This commit is contained in:
Tienson Qin
2022-05-13 11:02:29 +08:00
parent fb8cd67917
commit 8d400bcaf0
2 changed files with 2 additions and 3 deletions

View File

@@ -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 []

View File

@@ -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)}}