fix: wrong props filter with boolean and int

Fix #3944
pull/3947/head
Andelf 2022-01-19 10:13:30 +08:00 committed by Tienson Qin
parent 5ce66ac215
commit e9ebf54ecb
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@
properties (assoc properties :tags tags :alias alias)
properties (-> properties
(update :filetags (constantly filetags)))
properties (medley/filter-kv (fn [_k v] (seq v)) properties)]
properties (medley/remove-kv (fn [_k v] (or (nil? v) (and (coll? v) (empty? v)))) properties)]
(if (seq properties)
(cons [["Properties" properties] nil] other-ast)
original-ast))