Browse Source

fix: no need to set :block/left for closed value blocks

related to LOG-2871
Tienson Qin 2 years ago
parent
commit
c9d01bc333
1 changed files with 1 additions and 4 deletions
  1. 1 4
      src/main/frontend/handler/property.cljs

+ 1 - 4
src/main/frontend/handler/property.cljs

@@ -305,10 +305,7 @@
                                           :block/page page-id
                                           :block/metadata metadata
                                           :block/schema {:value resolved-value}
-                                          :block/format :markdown
-                                          :block/parent page-id
-                                          :block/left (or (when page-entity (model/get-block-last-direct-child (db/get-db) (:db/id page-entity)))
-                                                          page-id)}
+                                          :block/parent page-id}
                                           icon
                                           (assoc :block/properties {icon-id icon})