Ver código fonte

fix: collapse arrow not shown

Tienson Qin 4 anos atrás
pai
commit
036b1b8e62
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      src/main/frontend/components/block.cljs

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

@@ -1220,7 +1220,8 @@
                     (not (:pre-block? block))
                     (not (:pre-block? block))
                     (or has-children-blocks? (seq body)))
                     (or has-children-blocks? (seq body)))
         control-show? (and
         control-show? (and
-                       (or (seq (:block/title block))
+                       (or (and (seq (:block/title block))
+                                (seq body))
                            has-children-blocks?)
                            has-children-blocks?)
                        (util/react *control-show?))
                        (util/react *control-show?))
         ref-collapsed? (util/react *ref-collapsed?)
         ref-collapsed? (util/react *ref-collapsed?)