Browse Source

fix: filter empty tags

Weihua Lu 4 years ago
parent
commit
87a0e0ab24
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/frontend/extensions/zotero/extractor.cljs

+ 1 - 1
src/main/frontend/extensions/zotero/extractor.cljs

@@ -128,7 +128,7 @@
                          (rename-keys {:title :original-title})
                          (assoc :title (page-name item)))]
     (->> data
-         (remove (comp str/blank? second))
+         (remove (comp (fn [v] (or (str/blank? v) (empty? v))) second))
          (into {}))))
 
 (defmethod extract "note"