fix: don't add including-parent when using template

pull/1383/head
Tienson Qin 2021-02-26 21:28:05 +08:00
parent bbbdb926fc
commit 6f788d7e6f
1 changed files with 1 additions and 1 deletions

View File

@ -220,7 +220,7 @@
(let [new-level (+ new-level (let [new-level (+ new-level
(- level template-parent-level (- level template-parent-level
(if (not including-parent?) 1 0))) (if (not including-parent?) 1 0)))
properties' (dissoc (into {} properties) "id" "custom_id" "template")] properties' (dissoc (into {} properties) "id" "custom_id" "template" "including-parent")]
(-> content (-> content
(string/replace-first (apply str (repeat level pattern)) (string/replace-first (apply str (repeat level pattern))
(apply str (repeat new-level pattern))) (apply str (repeat new-level pattern)))