Skip to content

Commit

Permalink
fix(plugin): support empty vector for the value of blocks children
Browse files Browse the repository at this point in the history
  • Loading branch information
xyhp915 authored and tiensonqin committed Sep 22, 2021
1 parent 3397b2e commit 7ea0086
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/frontend/handler/editor.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -2129,8 +2129,9 @@
(into []
(mapcat
(fn [e]
(let [e* (select-keys e [:content :properties])]
(if-let [children (:children e)]
(let [e* (select-keys e [:content :properties])
children (:children e)]
(if (seq children)
[e* (tree->vec-tree (:children e))]
[e*])))
tree)))
Expand Down

0 comments on commit 7ea0086

Please sign in to comment.