fix(queries): edit button showing in default queries (#5610)

fix edit button showing in default queries

Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
pull/5600/head
sawhney17 2022-06-08 11:59:13 +04:00 committed by GitHub
parent 9b82162038
commit 152cc22010
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

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