From 152cc220104ce724d4be2577fc7792586823e1e5 Mon Sep 17 00:00:00 2001 From: sawhney17 <80150109+sawhney17@users.noreply.github.com> Date: Wed, 8 Jun 2022 11:59:13 +0400 Subject: [PATCH] fix(queries): edit button showing in default queries (#5610) fix edit button showing in default queries Co-authored-by: Tienson Qin --- src/main/frontend/components/block.cljs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/frontend/components/block.cljs b/src/main/frontend/components/block.cljs index c13dd56c1..d7a2388d9 100644 --- a/src/main/frontend/components/block.cljs +++ b/src/main/frontend/components/block.cljs @@ -2790,12 +2790,12 @@ [:span.opacity-60.text-sm.ml-2.results-count (str (count transformed-query-result) " results")]] ;;insert an "edit" button in the query view - [:a.opacity-70.hover:opacity-100.svg-small.inline - {:on-mouse-down (fn [e] - (util/stop e) - (editor-handler/edit-block! current-block :max (:block/uuid current-block)))} - svg/edit]] - + (when-not built-in? + [:a.opacity-70.hover:opacity-100.svg-small.inline + {:on-mouse-down (fn [e] + (util/stop e) + (editor-handler/edit-block! current-block :max (:block/uuid current-block)))} + svg/edit])] (fn [] [:div (when (and current-block (not view-f) (nil? table-view?))