fix: whiteboard page sidebar empty string (#10018)

pull/10024/head
Matheus Francisco 2023-08-14 13:20:52 -03:00 committed by GitHub
parent 62dcbb22a8
commit d419487445
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -361,7 +361,7 @@
;; The future plan is to separate those properties from the block' content.
(defn remove-built-in-properties
[format content]
(let [trim-content (string/trim content)]
(let [trim-content (some-> content string/trim)]
(if (or
(and (= format :markdown)
(string/starts-with? trim-content "```")