From 8d400bcaf0916a2f58dcf6f69927a0a0d4326ba2 Mon Sep 17 00:00:00 2001 From: Tienson Qin Date: Fri, 13 May 2022 11:02:29 +0800 Subject: [PATCH] fix: lint warnings --- src/main/frontend/components/block.cljs | 3 +-- src/main/frontend/ui.cljs | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/frontend/components/block.cljs b/src/main/frontend/components/block.cljs index feb0484807..b04175b11f 100644 --- a/src/main/frontend/components/block.cljs +++ b/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 [] diff --git a/src/main/frontend/ui.cljs b/src/main/frontend/ui.cljs index ebaa8b77df..6ba20aedcb 100644 --- a/src/main/frontend/ui.cljs +++ b/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)}}