Browse Source

feat: preview block reference with its children

Peng Xiao 4 years ago
parent
commit
384b324aed
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/main/frontend/components/block.cljs

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

@@ -571,7 +571,9 @@
                                         {:style {:width      735
                                         {:style {:width      735
                                                  :text-align "left"
                                                  :text-align "left"
                                                  :max-height 600}}
                                                  :max-height 600}}
-                                        (blocks-container [block] (assoc config :preview? true))])
+                                        (blocks-container
+                                         (db/get-block-and-children (state/get-current-repo) (:block/uuid block))
+                                         (assoc config :id (str id) :preview? true))])
                         :interactive true
                         :interactive true
                         :delay       [1000, 100]} inner)
                         :delay       [1000, 100]} inner)
              inner))]
              inner))]