Some cleanup suggested by Gabe

pull/6529/head
Tienson Qin 2022-09-21 12:59:14 +08:00
parent edd79954c1
commit da72d4d620
2 changed files with 2 additions and 5 deletions

View File

@ -129,7 +129,7 @@
[s]
(when s
(some->>
(string/split s #"[\,|]{1}")
(string/split s #",")
(remove string/blank?)
(map string/trim))))
@ -153,9 +153,7 @@
[(string/trim v)]))
refs)
k (if (or (symbol? k) (keyword? k)) (subs (str k) 1) k)
v (if (or (symbol? v) (keyword? v))
(subs (str v) 1)
(str v))
v (subs (str v) 1)
v (string/trim v)
non-string-property (parse-non-string-property-value v)]
(cond

View File

@ -1916,7 +1916,6 @@
;; because :block/properties value only contains refs but user wants to see text
property-separated-by-commas? (text/separated-by-commas? (state/get-config) k)
v (if (and (coll? value) (seq value)
(not (contains? gp-property/editable-linkable-built-in-properties k))
(not property-separated-by-commas?))
(gp-property/property-value-from-content (name k) (:block/content block))
value)