Skip to content

Commit

Permalink
fix: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
pengx17 committed Sep 29, 2022
1 parent 76a7a9c commit 48d4b65
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
2 changes: 2 additions & 0 deletions deps/graph-parser/.carve/ignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,5 @@ logseq.graph-parser.util.page-ref/page-ref-re
logseq.graph-parser.property/->block-content
;; API
logseq.graph-parser.property/property-value-from-content
;; API
logseq.graph-parser.whiteboard/page-block->tldr-page
8 changes: 0 additions & 8 deletions deps/graph-parser/src/logseq/graph_parser/block.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,6 @@
(vector? block)
(= "Heading" (first block))))

(defn whiteboard-properties?
[properties]
(and properties
(or (#{:whiteboard-shape :whiteboard-page} (:ls-type properties))
;; whiteboard page will have the following properties. We use them as a hint
(and (:assets properties)
(:bindings properties)))))

(defn get-tag
[block]
(when-let [tag-value (and (vector? block)
Expand Down
3 changes: 1 addition & 2 deletions src/main/frontend/db/model.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -1355,8 +1355,7 @@
:where
[_ :block/properties ?p]]
(conn/get-db))
properties (remove (fn [m] (or (empty? m)
(gp-block/whiteboard-properties? m))) properties)]
properties (remove (fn [m] (empty? m)) properties)]
(->> (map keys properties)
(apply concat)
distinct
Expand Down

0 comments on commit 48d4b65

Please sign in to comment.