瀏覽代碼

fix: add back haschild attribute

Peng Xiao 4 年之前
父節點
當前提交
63d8130b8c
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/main/frontend/components/block.cljs

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

@@ -2159,7 +2159,8 @@
                    (when (and collapsed? has-child?) " collapsed")
                    (when pre-block? " pre-block")
                    (when (and card? (not review-cards?)) " shadow-xl"))
-       :blockid (str uuid)}
+       :blockid (str uuid)
+       :haschild (str has-child?)}
 
        level
        (assoc :level level)